-
Notifications
You must be signed in to change notification settings - Fork 5
34 lines (34 loc) · 938 Bytes
/
release.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
name: Release
on:
release:
types: [ published ]
workflow_dispatch: { }
jobs:
lint:
name: Linting & Analysis
uses: ./.github/workflows/lint.yml
secrets: inherit
with:
check-dependencies: false
test:
name: Test
uses: ./.github/workflows/test.yml
secrets: inherit
deploy:
name: Deploy artifacts
needs: [lint, test]
uses: ./.github/workflows/deploy.yml
secrets: inherit
release:
runs-on: ubuntu-latest
needs: [lint, test, deploy]
steps:
- name: Attach artifacts to GitHub Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ needs.deploy.outputs.artifacts_archive_path }}
asset_name: ${{ needs.deploy.outputs.artifacts_archive_path }}
asset_content_type: application/zip