|
1 | | -name: website |
2 | | - |
3 | | -on: |
4 | | - push: |
5 | | - branches: |
6 | | - - '*-release' |
7 | | - |
8 | | -jobs: |
9 | | - publish-website: |
10 | | - runs-on: ubuntu-latest |
11 | | - |
12 | | - if: github.repository_owner == 'goong-io' |
13 | | - |
14 | | - env: |
15 | | - GoongAccessToken: ${{ secrets.GOONG_MAPTILES_KEY_CI }} |
16 | | - |
17 | | - steps: |
18 | | - |
19 | | - |
20 | | - - name: Use Node.js |
21 | | - uses: actions/setup-node@v1 |
22 | | - with: |
23 | | - node-version: '12.x' |
24 | | - |
25 | | - - name: Get version |
26 | | - id: get-version |
27 | | - run: LATEST=$(npm show @goongmaps/goong-map-react version | grep -o -E "^[0-9]+\.[0-9]+") && echo "::set-output name=latest::/${LATEST}-release" |
28 | | - |
29 | | - - name: Check version |
30 | | - if: ${{ !endsWith(github.ref, steps.get-version.outputs.latest) }} |
31 | | - run: | |
32 | | - echo "Website is only published from the latest release branch" |
33 | | -
|
34 | | - - name: Build website |
35 | | - if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }} |
36 | | - run: | |
37 | | - yarn bootstrap |
38 | | - cd website |
39 | | - yarn |
40 | | - yarn build |
41 | | -
|
42 | | - - name: Deploy |
43 | | - if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }} |
44 | | - |
45 | | - with: |
46 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
47 | | - BRANCH: gh-pages |
48 | | - FOLDER: website/public |
49 | | - CLEAN: true |
| 1 | +# name: website |
| 2 | + |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: |
| 6 | +# - '*-release' |
| 7 | + |
| 8 | +# jobs: |
| 9 | +# publish-website: |
| 10 | +# runs-on: ubuntu-latest |
| 11 | + |
| 12 | +# if: github.repository_owner == 'goong-io' |
| 13 | + |
| 14 | +# env: |
| 15 | +# GoongAccessToken: ${{ secrets.GOONG_MAPTILES_KEY_CI }} |
| 16 | + |
| 17 | +# steps: |
| 18 | +# - uses: actions/[email protected] |
| 19 | + |
| 20 | +# - name: Use Node.js |
| 21 | +# uses: actions/setup-node@v1 |
| 22 | +# with: |
| 23 | +# node-version: '12.x' |
| 24 | + |
| 25 | +# - name: Get version |
| 26 | +# id: get-version |
| 27 | +# run: LATEST=$(npm show @goongmaps/goong-map-react version | grep -o -E "^[0-9]+\.[0-9]+") && echo "::set-output name=latest::/${LATEST}-release" |
| 28 | + |
| 29 | +# - name: Check version |
| 30 | +# if: ${{ !endsWith(github.ref, steps.get-version.outputs.latest) }} |
| 31 | +# run: | |
| 32 | +# echo "Website is only published from the latest release branch" |
| 33 | + |
| 34 | +# - name: Build website |
| 35 | +# if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }} |
| 36 | +# run: | |
| 37 | +# yarn bootstrap |
| 38 | +# cd website |
| 39 | +# yarn |
| 40 | +# yarn build |
| 41 | + |
| 42 | +# - name: Deploy |
| 43 | +# if: ${{ endsWith(github.ref, steps.get-version.outputs.latest) }} |
| 44 | +# uses: JamesIves/[email protected] |
| 45 | +# with: |
| 46 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 47 | +# BRANCH: gh-pages |
| 48 | +# FOLDER: website/public |
| 49 | +# CLEAN: true |
0 commit comments