Skip to content

Commit

Permalink
restructure + actions + hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Aug 5, 2024
1 parent fabbe77 commit 95c176c
Show file tree
Hide file tree
Showing 187 changed files with 2,832 additions and 2,734 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Disable Git line ending conversion in the pack directory
# This prevents packwiz index hashes changing when committing from Windows
pack/** -text
49 changes: 49 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Deploy packwiz pack to github pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: import main
uses: actions/checkout@v3
with:
ref: main
path: main
sparse-checkout: 'pack'
sparse-checkout-cone-mode: false
- name: import main - clean
run: rm -rf cdn/main/.git
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.idea/
.DS_Store

*.mrpack
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 ModFest

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Binary file removed MultiMC.zip
Binary file not shown.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
To install to MultiMC, create a new instance, use "Import from ZIP", and import https://blanketcon-pack.vercel.app/MultiMC.zip
# blanketcon-22
The official BlanketCon '22 modpack!
5 changes: 5 additions & 0 deletions enable_hooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
#

echo "Enabling Hooks"
git config core.hooksPath git/hooks
9 changes: 9 additions & 0 deletions git/hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
#

. git-sh-setup
echo "Refreshing Packwiz Index"
cd pack
packwiz refresh
git add index.toml
git add pack.toml
7 changes: 7 additions & 0 deletions git/hooks/pre-merge-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
#

. git-sh-setup
test -x "$GIT_WORK_TREE/git/hooks/pre-commit" &&
exec "$GIT_WORK_TREE/git/hooks/pre-commit"
:
Loading

0 comments on commit 95c176c

Please sign in to comment.