forked from mirror/codesnap.nvim
[Fix] release ci (#55)
parent
7fd0ea884a
commit
872529b42a
|
@ -41,7 +41,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Build library
|
- name: Build link lib
|
||||||
uses: houseabsolute/actions-rust-cross@v0
|
uses: houseabsolute/actions-rust-cross@v0
|
||||||
with:
|
with:
|
||||||
command: "build"
|
command: "build"
|
||||||
|
@ -56,7 +56,7 @@ jobs:
|
||||||
- name: Commit changes
|
- name: Commit changes
|
||||||
uses: EndBug/add-and-commit@v7
|
uses: EndBug/add-and-commit@v7
|
||||||
with:
|
with:
|
||||||
message: '[Update] files based on generated files by template generator'
|
message: '[Update] generator link library on ${{ matrix.platform.os_name }}'
|
||||||
pull_strategy: 'NO-PULL'
|
pull_strategy: 'NO-PULL'
|
||||||
push: false
|
push: false
|
||||||
|
|
||||||
|
@ -71,27 +71,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Setup python
|
- name: Setup python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
|
|
||||||
- name: Replace template
|
|
||||||
run: python3 scripts/replace-template.py
|
|
||||||
|
|
||||||
- name: Commit changes
|
|
||||||
uses: EndBug/add-and-commit@v7
|
|
||||||
with:
|
|
||||||
message: '[Update] files based on generated files by template generator'
|
|
||||||
pull_strategy: 'NO-PULL'
|
|
||||||
push: false
|
|
||||||
|
|
||||||
- name: Push changes
|
|
||||||
run: |
|
|
||||||
git pull --rebase
|
|
||||||
git push
|
|
||||||
|
|
||||||
- name: Read version from project config
|
- name: Read version from project config
|
||||||
id: read_toml
|
id: read_toml
|
||||||
uses: SebRollen/toml-action@v1.0.2
|
uses: SebRollen/toml-action@v1.0.2
|
||||||
|
@ -99,6 +86,21 @@ jobs:
|
||||||
file: project.toml
|
file: project.toml
|
||||||
field: project.version
|
field: project.version
|
||||||
|
|
||||||
|
- name: Replace template
|
||||||
|
run: python3 scripts/replace-template.py
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: EndBug/add-and-commit@v7
|
||||||
|
with:
|
||||||
|
message: '[Release] ${{ steps.read_toml.outputs.value }}'
|
||||||
|
pull_strategy: 'NO-PULL'
|
||||||
|
push: false
|
||||||
|
|
||||||
|
- name: Push changes
|
||||||
|
run: |
|
||||||
|
git pull --rebase
|
||||||
|
git push
|
||||||
|
|
||||||
- name: Bump version and push tag
|
- name: Bump version and push tag
|
||||||
id: tag_version
|
id: tag_version
|
||||||
uses: mathieudutour/github-tag-action@v6.1
|
uses: mathieudutour/github-tag-action@v6.1
|
||||||
|
|
Loading…
Reference in New Issue