Fix typo (#12) #42
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: Build and Deploy | |
on: [push] | |
jobs: | |
prepare-webflasher: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Build manifest files for Webflasher 🔧 | |
run: | | |
python .github/webflasher.py | |
- name: Display structure of files 🔍 | |
run: ls -R ./src/.vuepress/public/pixelit_flasher | |
- name: Upload build artifacts 💾 | |
uses: actions/upload-artifact@v3 | |
with: | |
name: webflasher-manifest-files | |
path: | | |
./src/.vuepress/public/pixelit_flasher/meta.json | |
./src/.vuepress/public/pixelit_flasher/manifest/*.json | |
- name: Commit new manifest files📝 | |
run: | | |
git config --global user.name 'PixelIt Pipeline Bot' | |
git config --global user.email 'bot@pixelit' | |
if [[ $(git status --porcelain) ]]; then | |
git add --all | |
git commit -m "Pushed new manifest files via GitHub Actions" | |
git push | |
echo "Changes committed." | |
else | |
echo "No uncommitted changes found." | |
fi | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
needs: prepare-webflasher | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Download build artifacts 💾 | |
uses: actions/download-artifact@v3 | |
with: | |
name: webflasher-manifest-files | |
path: ./src/.vuepress/public/pixelit_flasher | |
- name: Display structure of downloaded files 🔍 | |
run: ls -R ./src/.vuepress/public | |
- name: vuepress-deploy 🚀 | |
uses: jenkey2011/vuepress-deploy@master | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
TARGET_REPO: pixelit-project/pixelit-project.github.io | |
TARGET_BRANCH: gh-pages | |
BUILD_SCRIPT: yarn && yarn build | |
BUILD_DIR: src/.vuepress/dist/ |