mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-22 05:58:21 -05:00
Merge bc8608cd4e
into 779908cb11
This commit is contained in:
commit
be6ebe5c90
48
.github/workflows/release.yml
vendored
Normal file
48
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
name: Bump release version
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: [rolling]
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
concurrency: production
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: bump tag version and release
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.sha }}
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Bump version and push tag
|
||||||
|
id: version-bump
|
||||||
|
uses: hennejg/github-tag-action@v4.3.1
|
||||||
|
with:
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
release_branches: rolling
|
||||||
|
- name: get-app-version
|
||||||
|
id: package-version
|
||||||
|
run: |
|
||||||
|
LF_VERSION=$(cat package.json | jq -r '.version')
|
||||||
|
echo "current-version=$LF_VERSION" >> "$GITHUB_OUTPUT"
|
||||||
|
- name: update cargo.toml
|
||||||
|
run: |
|
||||||
|
appversion=$(echo "${{ steps.version-bump.outputs.new_tag }}" | sed 's/[v]//')
|
||||||
|
sed -i -e "s/^version = .*/version = \"$appversion\"/" Cargo.toml
|
||||||
|
- name: Create Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
generate_release_notes: true
|
||||||
|
name: ${{ steps.version-bump.outputs.new_tag }}
|
||||||
|
tag_name: ${{ steps.version-bump.outputs.new_tag }}
|
||||||
|
prerelease: false
|
||||||
|
env:
|
||||||
|
GITHUB_REPOSITORY: ${{ github.repository }}
|
Loading…
Reference in New Issue
Block a user