XY ファイルの読み込み機能の公開 #32
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
# master マージ時には github page にアプリケーションをデプロイする | |
name: CI | |
on: | |
push: | |
branches: [master, main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Create dot env file | |
uses: actions/setup-node@v3 | |
- shell: bash | |
run: | | |
touch .env | |
echo 'VUE_APP_KUROMOJI_DICT="/mri-vuewer.ver2/dict/"' >> .env | |
echo 'VUE_APP_DROPBOX_REDIRECT="https://kikuchiken-waseda.github.io/mri-vuewer.ver2"' >> .env | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
- name: Install dependencies | |
run: yarn | |
- name: CI | |
run: yarn build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |