diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..a4dce4c --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,4 @@ +template: | + ## What's Changed + + $CHANGES diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e0b1be8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +--- +on: + push: + tags: + - 'v*' + +name: Release + +jobs: + create_draft_release: + permissions: + contents: write + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag: ${{ github.ref_name }} + version: ${{ github.ref_name }} + + # release: + # strategy: + # matrix: + # include: + # - os: ubuntu-latest + # artifact_file: hifumi-linux-amd64.tgz + # runs-on: ${{ matrix.os }} + # steps: + # - name: Checkout code + # uses: actions/checkout@v4 + # with: + # fetch-depth: 0 + # - name: Setup Go + # uses: actions/setup-go@v4 + # with: + # go-version-file: './go.mod' + # - name: Build release + # run: | + # go build -o hifumi cmd/hifumi/main.go diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f982ae9..a03ad69 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,8 +9,8 @@ on: workflow_dispatch: jobs: - gotest: - name: Go Tests + tests: + name: Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4