create releases
This commit is contained in:
parent
7cf376021c
commit
16a7f0f0d4
1 changed files with 27 additions and 0 deletions
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
|
|
@ -5,11 +5,34 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- "*"
|
- "*"
|
||||||
jobs:
|
jobs:
|
||||||
|
setup:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
# - name: remove last latest release
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# run: gh release delete latest
|
||||||
|
- name: create latest release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh release create latest --notes "latest release"
|
||||||
|
- name: create versioned release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh release create v${{ github.run_number }} --notes "Release ${{ github.run_number }}"
|
||||||
|
- name: Upload Release Asset
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh release upload latest dist/
|
||||||
release:
|
release:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
permissions:
|
||||||
|
contents: write # release changes require contents write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
|
|
@ -22,3 +45,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: lsm-${{ matrix.os }}
|
name: lsm-${{ matrix.os }}
|
||||||
path: dist
|
path: dist
|
||||||
|
- name: Upload Release Asset
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: gh release upload ${{ github.run_number }} dist/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue