diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..2b34646a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,20 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main # or whichever branch you want to deploy from + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./ # deploy the root directory (or adjust if your static files are in a subfolder) diff --git a/.github/workflows/this.yml b/.github/workflows/this.yml new file mode 100644 index 00000000..e2f578f8 --- /dev/null +++ b/.github/workflows/this.yml @@ -0,0 +1,33 @@ +name: unzip + push to repo + +on: + workflow_dispatch: {} + +jobs: + unzip-and-push: + runs-on: ubuntu-latest + + steps: + - name: checkout repo with write access + uses: actions/checkout@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: delete versions/betaphysics + run: rm -rf versions/betaphysics + + - name: unzip into versions/reverse + run: | + mkdir -p versions/betaphysics + unzip -o resources.zip -d versions/betaphysics + + - name: commit and push changes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + git add versions/betaphysics + git diff --cached --quiet || git commit -m "adding ovo beta physics mod [3b_again/4]" + git push diff --git a/index.html b/index.html index 643d40ce..ad8a93d6 100644 --- a/index.html +++ b/index.html @@ -104,6 +104,9 @@