diff --git a/.github/workflows/CHANGELOG.md b/.github/workflows/CHANGELOG.md new file mode 100644 index 0000000..e69de29 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4cece86..03e729b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,20 +1,26 @@ ---- -name: "release" +name: Create release on: push: branches: - - "main" + - main + tags: + - v* -jobs: - pre-release: - name: "Pre Release" - runs-on: "ubuntu-latest" +permissions: + contents: write +jobs: + release: + name: Release pushed tag + runs-on: ubuntu-22.04 steps: - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - automatic_release_tag: "latest" - prerelease: true - title: "Development Build" + - name: Create release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref_name }} + run: | + gh release create "$tag" \ + --repo="$GITHUB_REPOSITORY" \ + --title="${GITHUB_REPOSITORY#*/} ${tag#v}" \ + --notes-file=CHANGELOG.md \ \ No newline at end of file