-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (45 loc) · 1.38 KB
/
netlify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build and Deploy
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
jobs:
jbang:
runs-on: ubuntu-latest
name: A job to run jbang
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: netlify
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: checkout
uses: actions/checkout@v4
with:
token: ${{secrets.TOKEN}}
- uses: actions/cache@v1
with:
path: /root/.jbang
key: $-jbang-$
restore-keys: |
$-jbang-
- name: jbang
uses: jbangdev/[email protected]
with:
script: [email protected]
scriptargs: bundle ./presentation/kotlin-script.reveal.kts
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './out'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1