Skip to content

Commit 581b59e

Browse files
authored
Revert "Delete legacy workflows"
1 parent 20c5a0b commit 581b59e

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy Website
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
title:
7+
description: 'The name of the GitHub release'
8+
type: string
9+
required: true
10+
description:
11+
description: 'The description used in the GitHub release (typically a changelog)'
12+
type: string
13+
required: true
14+
make_release:
15+
description: 'Make a GitHub release with a reference.zip after uploading the website'
16+
type: boolean
17+
required: true
18+
default: true
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Use Node.js 16
25+
uses: actions/setup-node@v3
26+
with:
27+
node-version: 16
28+
- name: Install dependencies
29+
run: npm ci
30+
- name: Deploy with static
31+
run: npm run deployGithub
32+
env:
33+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
34+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
- name: Make reference.zip
37+
run: npm run zip
38+
- name: Set Tag Name
39+
run: |
40+
echo "RELEASE_DATE=$(date '+%Y-%m-%d-%H%M%S')" >> ${GITHUB_ENV}
41+
- name: Create release
42+
uses: softprops/action-gh-release@v1
43+
if: ${{ inputs.make_release }}
44+
with:
45+
files: reference.zip
46+
body: ${{ inputs.description }}
47+
name: ${{ inputs.title }}
48+
tag_name: ${{ env.RELEASE_DATE }}

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update Processing Releases
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Use Node.js 20
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
- name: Install dependencies
20+
run: npm install
21+
- name: Fetch releases
22+
run: |
23+
npm run fetchReleases
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
26+
- name: Create Pull Request
27+
uses: peter-evans/create-pull-request@v7
28+
with:
29+
title: 'Update releases'
30+
branch: update-releases
31+
add-paths: |
32+
content/download/*.json
33+

0 commit comments

Comments
 (0)