1 |
name: Releases |
name: Releases |
2 |
|
|
3 |
on: |
on: |
4 |
push: |
push: |
5 |
branches: |
branches: |
7 |
|
|
8 |
permissions: |
permissions: |
9 |
contents: write |
contents: write |
10 |
|
deployments: write |
11 |
|
|
12 |
jobs: |
jobs: |
13 |
build: |
build: |
14 |
if: github.repository_owner == 'onesoft-sudo' |
if: github.repository_owner == 'onesoft-sudo' && github.ref == 'refs/heads/main' |
15 |
|
|
16 |
strategy: |
strategy: |
17 |
matrix: |
matrix: |
70 |
|
|
71 |
release: |
release: |
72 |
needs: [build] |
needs: [build] |
73 |
if: github.repository_owner == 'onesoft-sudo' |
if: github.repository_owner == 'onesoft-sudo' && github.ref == 'refs/heads/main' |
74 |
runs-on: ubuntu-latest |
runs-on: ubuntu-latest |
75 |
|
|
76 |
steps: |
steps: |
139 |
body: ${{ steps.auto_release.outputs.release_notes }} |
body: ${{ steps.auto_release.outputs.release_notes }} |
140 |
artifactContentType: application/x-gzip |
artifactContentType: application/x-gzip |
141 |
artifacts: ./sudobot-release-linux.tar.gz,./sudobot-release-darwin.tar.gz |
artifacts: ./sudobot-release-linux.tar.gz,./sudobot-release-darwin.tar.gz |
142 |
|
|
143 |
|
deploy-staging: |
144 |
|
needs: [build, release] |
145 |
|
if: github.repository_owner == 'onesoft-sudo' |
146 |
|
uses: ./.github/workflows/staging.yml |
147 |
|
secrets: inherit |