diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d1fb9df --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +--- +name: Release + +on: + push: + tags: + - "v*.*.*" + +jobs: + create: + name: Create + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout ${{ github.repository }} + uses: actions/checkout@v6.0.2 + with: + fetch-depth: 0 + ref: "${{ github.ref }}" + - name: Create release + uses: elgohr/Github-Release-Action@c5ea99036abb741a89f8bf1f2cd7fba845e3313a # v5 + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + title: ${{ github.ref_name }} + tag: ${{ github.ref_name }} + - name: Bump tags + uses: fischerscode/tagger@5ca3fa63ce3003fb7183cae547644b29f3b632be # v0.2.0 + with: + prefix: v diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..3775263 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,21 @@ +# Release + +## Create release + +Do not manually draft a release. + +To start a release, create a release tag at the commit you want using the commands +below. + +```shell +git tag -a "v1.2.3" -m "v1.2.3" +git push origin "v1.2.3" +``` + +## Publish GitHub Action to the marketplace + +1. Go to the [Releases page](https://github.com/fjogeleit/http-request-action/releases) +and select the latest release that was just created. +2. Select "Edit" button. +3. Select "Publish this Action to the GitHub Marketplace" checkbox. +4. Select "Update release" button.