-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (64 loc) · 1.54 KB
/
deploy.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: deploy
on:
push:
paths-ignore:
- 'old/**'
- '**.md'
pull_request:
paths-ignore:
- 'old/**'
- '**.md'
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml
# deploy-npm:
# runs-on: ubuntu-22.04
# needs: build
# if: github.ref == 'refs/heads/release'
# permissions:
# contents: read
# id-token: write
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22
# registry-url: 'https://registry.npmjs.org'
# - run: |
# yarn npm-publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
deploy-gh-pages:
runs-on: ubuntu-22.04
needs: build
# needs: deploy-npm
if: github.ref == 'refs/heads/release'
steps:
- uses: actions/checkout@v4
- name: build
run: |
yarn install
yarn build
- name: gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/fluid-org
keep_files: false
deploy-ESOP-artifact:
runs-on: ubuntu-22.04
needs: build
if: github.ref == 'refs/heads/develop' && github.repository == 'rolyp/esop25-web-artifact'
steps:
- uses: actions/checkout@v4
- name: build
run: |
yarn install
yarn build-esop2025-artifact
- name: gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/esop2025-artifact
keep_files: false