Skip to content

release: v0.1.9

release: v0.1.9 #18

Workflow file for this run

name: Deploy to GitHub Pages
on:
release:
types: [published]
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Create .env File
run: |
echo "REACT_APP_API_HOST=${{ vars.REACT_APP_API_HOST }}" >> .env
echo "REACT_APP_RSA_PUBLIC_KEY=${{ secrets.REACT_APP_RSA_PUBLIC_KEY }}" >> .env
echo "REACT_APP_AES_KEY=${{ secrets.REACT_APP_AES_KEY }}" >> .env
echo "REACT_APP_VERSION=${{ github.event.release.tag_name }}" >> .env
- name: Build Project
run: yarn build
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build
path: build
deploy:
runs-on: ubuntu-latest
# Only run this job when release has been published
if: github.event_name == 'release' && github.event.action == 'published'
needs: build
steps:
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: build
path: build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build