mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2026-02-04 08:35:53 +08:00
ci: create "Release" CI workflow (#205)
* ci: create "Release" CI workflow * docs: update RELEASE.md file
This commit is contained in:
31
.github/workflows/release.yml
vendored
Normal file
31
.github/workflows/release.yml
vendored
Normal file
@@ -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
|
||||
21
RELEASE.md
Normal file
21
RELEASE.md
Normal file
@@ -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.
|
||||
Reference in New Issue
Block a user