update md #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Instance | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- profile/** | |
- .github/workflows/instance.yml | |
jobs: | |
update-instance: | |
runs-on: ubuntu-latest | |
permissions: | |
pages: write | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Zip profile directory | |
run: zip -r profile.zip profile/ | |
- run: | | |
mkdir public | |
mv profile.zip public/ | |
cp public/profile.zip "public/Modfest 1.20 - Sky and Sea.zip" | |
- name: Publish to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: public | |
publish_branch: gh-pages | |
destination_dir: content | |
keep_files: true | |
commit_message: "Publish profile to GitHub Pages" |