Skip to content

Commit 6c77c12

Browse files
committed
Break docs out into own job
1 parent be2248d commit 6c77c12

File tree

1 file changed

+29
-23
lines changed

1 file changed

+29
-23
lines changed

.github/workflows/release.yaml

+29-23
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "[0-9]+.[0-9]+.[0-9]+*"
77

88
jobs:
9-
build:
9+
plugin:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
@@ -31,30 +31,13 @@ jobs:
3131
NOTES="${NOTES//$'\r'/'%0D'}"
3232
echo ::set-output name=NOTES::"$NOTES"
3333
34-
- name: Setup GCP
35-
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
36-
with:
37-
version: "270.0.0"
38-
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
39-
service_account_key: ${{ secrets.GCP_SA_KEY }}
40-
4134
- name: Build
4235
env:
4336
UNITY_USERNAME: ${{ secrets.UNITY_USERNAME }}
4437
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
4538
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
4639
run: ./scripts/docker_run.sh
4740

48-
- name: Set up JDK 1.8
49-
uses: actions/setup-java@v1
50-
with:
51-
java-version: 1.8
52-
53-
- name: Build Docs
54-
run: |
55-
sudo apt-get install doxygen
56-
./gradlew docs:build
57-
5841
- name: Create Github Release
5942
uses: actions/create-release@v1.0.1
6043
id: create_release
@@ -77,12 +60,35 @@ jobs:
7760
asset_name: urbanairship-${{ steps.get_version.outputs.VERSION }}.unitypackage
7861
asset_content_type: application/octet-stream
7962

80-
- name: Upload Docs
81-
run: |
82-
VERSION=${{ steps.get_version.outputs.VERSION }}
83-
gsutil cp docs/build/$VERSION.tar.gz gs://ua-web-ci-prod-docs-transfer/libraries/unity/$VERSION.tar.gz
84-
8563
- name: Bintray Release
8664
env:
8765
BINTRAY_AUTH: ${{ secrets.BINTRAY_AUTH }}
8866
run: bash ./scripts/deploy_bintray.sh ${{ steps.get_version.outputs.VERSION }}
67+
68+
docs:
69+
runs-on: ubuntu-latest
70+
needs: plugin
71+
steps:
72+
- uses: actions/checkout@v2
73+
74+
- name: Setup GCP
75+
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
76+
with:
77+
version: "270.0.0"
78+
service_account_email: ${{ secrets.GCP_SA_EMAIL }}
79+
service_account_key: ${{ secrets.GCP_SA_KEY }}
80+
81+
- name: Set up JDK 1.8
82+
uses: actions/setup-java@v1
83+
with:
84+
java-version: 1.8
85+
86+
- name: Build Docs
87+
run: |
88+
sudo apt-get install doxygen
89+
./gradlew docs:build
90+
91+
- name: Upload Docs
92+
run: |
93+
VERSION=${{ steps.get_version.outputs.VERSION }}
94+
gsutil cp docs/build/$VERSION.tar.gz gs://ua-web-ci-prod-docs-transfer/libraries/unity/$VERSION.tar.gz

0 commit comments

Comments
 (0)