ci: use ubuntu-latest for vmactions #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build_dfly: | |
runs-on: ubuntu-latest | |
name: Release build and tests on dfly | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and test in DragonFly BSD | |
id: build-test-dfly | |
uses: vmactions/dragonflybsd-vm@v1 | |
with: | |
mem: 4096 | |
usesh: true | |
prepare: | | |
pkg install -y go curl | |
run: | | |
make ci | |
make test | |
release: | |
runs-on: [ubuntu-latest] | |
needs: build_dfly | |
name: Release | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} |