Merge pull request #40 from theypsilon/dependabot/npm_and_yarn/www/ws… #37
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: CI / CD | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Docker Build | |
run: | | |
set -euo pipefail | |
./scripts/docker-build.sh --extract-dist 2>&1 | |
git rev-parse HEAD > dist/commit.txt | |
date >> dist/commit.txt | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist | |
path: ./dist | |
deploy: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: dist | |
path: ./dist | |
- name: Serve | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |