Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Jun 12, 2024
1 parent 3270a48 commit 1e80e19
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# https://qiita.com/Pooh3Mobi/items/caafdc45e14df027e378
on:
push:
branches: [ "main", "master" ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
distribution: 'adopt'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Buid JS bundle
run: |
./gradlew jsBrowserProductionWebpack
- name: Deploy 🚀 to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: github-pages # デプロイ用のファイルを配置するブランチ名
FOLDER: build/distributions # デプロイ用のファイルが排出されるフォルダ
CLEAN: true # Automatically remove deleted files from the deploy branch

0 comments on commit 1e80e19

Please sign in to comment.