diff --git a/.github/workflows/release.yml b/.github/workflows/brew.yml similarity index 64% rename from .github/workflows/release.yml rename to .github/workflows/brew.yml index 8319bfc..fd4cc3b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/brew.yml @@ -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: diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.yml new file mode 100644 index 0000000..47b3541 --- /dev/null +++ b/.github/workflows/snap.yml @@ -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 diff --git a/RELEASE.md b/RELEASE.md index fdae1e8..bf37029 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -5,10 +5,11 @@ 3. Bump version in [package.json](npm/package.json). 4. Commit changes. 5. Publish npm package. -6. Create a new release on [GitHub](https://github.com/antonmedv/fx/releases/new). -7. Run [build.mjs](scripts/build.mjs) to upload binaries to the release. +6. Trigger [GitHub Actions](https://github.com/antonmedv/fx/actions) (brew, snap, docker). +7. Create a new release on [GitHub](https://github.com/antonmedv/fx/releases/new). +8. Run [build.mjs](scripts/build.mjs) to upload binaries to the release. ```sh npx zx scripts/build.mjs ``` -8. Bump version in [install.sh](https://github.com/antonmedv/fx.wtf/blob/master/public/install.sh) and upload it +9. Bump version in [install.sh](https://github.com/antonmedv/fx.wtf/blob/master/public/install.sh) and upload it to [fx.wtf](https://fx.wtf).