mirror of https://github.com/antonmedv/fx
Split release workflow
parent
14e1bd8f5f
commit
6340aba8a2
@ -1,30 +1,8 @@
|
||||
name: release
|
||||
name: brew
|
||||
|
||||
on: [release, workflow_dispatch]
|
||||
on: [workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
snap:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18
|
||||
|
||||
- uses: snapcore/action-build@v1
|
||||
id: build
|
||||
|
||||
- uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.MY_SNAPCRAFT_CREDENTIALS }}
|
||||
with:
|
||||
snap: ${{ steps.build.outputs.snap }}
|
||||
release: stable
|
||||
|
||||
brew:
|
||||
runs-on: macos-latest
|
||||
steps:
|
@ -0,0 +1,26 @@
|
||||
name: snap
|
||||
|
||||
on: [workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
snap:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: master
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.18
|
||||
|
||||
- uses: snapcore/action-build@v1
|
||||
id: build
|
||||
|
||||
- uses: snapcore/action-publish@v1
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.MY_SNAPCRAFT_CREDENTIALS }}
|
||||
with:
|
||||
snap: ${{ steps.build.outputs.snap }}
|
||||
release: stable
|
Loading…
Reference in New Issue