generated from arbetsmarknad/next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (33 loc) · 1006 Bytes
/
action.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
name: "AutoIndex Swedish Legislation"
description: "Automatically update an HTML index of a Swedish law"
inputs:
github_token:
description: "The GitHub token to use for deployment."
required: true
law:
description: "The name of the law repository being indexed."
required: true
outputs: {}
runs:
using: "composite"
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
run_install: true
version: 10
- run: pnpm install
shell: bash
working-directory: ${{ github.action_path }}
- run: pnpm build
shell: bash
working-directory: ${{ github.action_path }}
env:
NEXT_PUBLIC_LAW: "${{ inputs.law }}"
SOURCE_DIRECTORY_PATH: ${{ github.workspace }}
TARGET_DIRECTORY_PATH: ${{ github.action_path }}
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ inputs.github_token }}
publish_dir: ${{ github.action_path }}/out
force_orphan: true