diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
| commit | 1100562e29f6476448b656dbddd4cf22505523f6 (patch) | |
| tree | 442eec492199104bd49dfd74474ce89ade8fcac9 /.github/workflows | |
| parent | a40d80be378e46a6c490e1b99b0d8f4acd968503 (diff) | |
| download | mitjafelicijan.com-1100562e29f6476448b656dbddd4cf22505523f6.tar.gz | |
Move back to JBMAFP
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/deploy.yaml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..de81bd3 --- /dev/null +++ b/.github/workflows/deploy.yaml | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | name: Build and Deploy to Pages | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: ["master"] | ||
| 6 | workflow_dispatch: | ||
| 7 | |||
| 8 | permissions: | ||
| 9 | contents: read | ||
| 10 | pages: write | ||
| 11 | id-token: write | ||
| 12 | |||
| 13 | concurrency: | ||
| 14 | group: "pages" | ||
| 15 | cancel-in-progress: false | ||
| 16 | |||
| 17 | jobs: | ||
| 18 | deploy: | ||
| 19 | environment: | ||
| 20 | name: github-pages | ||
| 21 | url: ${{ steps.deployment.outputs.page_url }} | ||
| 22 | runs-on: ubuntu-latest | ||
| 23 | steps: | ||
| 24 | - name: Checkout | ||
| 25 | uses: actions/checkout@v3 | ||
| 26 | - name: Setup Pages | ||
| 27 | uses: actions/configure-pages@v3 | ||
| 28 | - name: Run a multi-line script | ||
| 29 | run: | | ||
| 30 | wget https://github.com/mitjafelicijan/jbmafp/releases/download/v0.1/jbmafp.zip | ||
| 31 | unzip jbmafp.zip | ||
| 32 | chmod +x jbmafp | ||
| 33 | ./jbmafp -b | ||
| 34 | - name: Upload artifact | ||
| 35 | uses: actions/upload-pages-artifact@v2 | ||
| 36 | with: | ||
| 37 | path: './public' | ||
| 38 | - name: Deploy to GitHub Pages | ||
| 39 | id: deployment | ||
| 40 | uses: actions/deploy-pages@v2 | ||
