Compare commits
4 Commits
5d9750b47e
...
main
Author | SHA1 | Date | |
---|---|---|---|
ff530cc8ec | |||
0cd8097beb | |||
4693fbbed3 | |||
53559a91b1 |
@@ -21,7 +21,7 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ gitea.ref }}
|
tag_name: ${{ gitea.ref }}
|
||||||
release_name: "${{ gitea.event.repository.name }}-${{ gitea.ref }}"
|
release_name: "${{ gitea.event.repository.name }} ${{ gitea.ref_name }}"
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
publish:
|
publish:
|
||||||
@@ -36,10 +36,10 @@ jobs:
|
|||||||
platform: windows-2022
|
platform: windows-2022
|
||||||
archive: zip
|
archive: zip
|
||||||
name: x86_64-pc-windows-msvc
|
name: x86_64-pc-windows-msvc
|
||||||
# - suffix: linux-x86_64
|
- suffix: linux-x86_64
|
||||||
# platform: ubuntu-latest
|
platform: ubuntu-latest
|
||||||
# archive: tar.gz
|
archive: tar.gz
|
||||||
# name: x86_64-unknown-linux-gnu
|
name: x86_64-unknown-linux-gnu
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
- name: Dump context
|
- name: Dump context
|
||||||
@@ -74,14 +74,15 @@ jobs:
|
|||||||
if: matrix.platform == 'windows-2022'
|
if: matrix.platform == 'windows-2022'
|
||||||
run: |
|
run: |
|
||||||
cp -r -fo assets $env:GITHUB_WORKSPACE/output/
|
cp -r -fo assets $env:GITHUB_WORKSPACE/output/
|
||||||
Compress-Archive -Force -Path $env:GITHUB_WORKSPACE/output/* -DestinationPath $env:GITHUB_WORKSPACE/${{ gitea.event.repository.name }}-${{ gitea.ref }}-${{ matrix.name }}.${{ matrix.archive }}
|
Compress-Archive -Force -Path $env:GITHUB_WORKSPACE/output/* -DestinationPath $env:GITHUB_WORKSPACE/${{ gitea.event.repository.name }}-${{ gitea.ref_name }}-${{ matrix.name }}.${{ matrix.archive }}
|
||||||
- name: Collect linux/macos artifacts
|
- name: Collect linux/macos artifacts
|
||||||
if: matrix.platform != 'windows-2022'
|
if: matrix.platform != 'windows-2022'
|
||||||
run: |
|
run: |
|
||||||
cp -rf assets ${GITHUB_WORKSPACE}/output/
|
cp -rf assets ${GITHUB_WORKSPACE}/output/
|
||||||
tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}-${{ gitea.ref }}-${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
|
tar -czvf ${GITHUB_WORKSPACE}/${{ gitea.event.repository.name }}-${{ gitea.ref_name }}-${{ matrix.name }}.${{ matrix.archive }} -C ${GITHUB_WORKSPACE}/output/ .
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
draft: false
|
draft: false
|
||||||
files: "${{ gitea.event.repository.name }}-${{ gitea.ref }}-${{ matrix.name }}.${{ matrix.archive }}"
|
name: "${{ gitea.event.repository.name }} ${{ gitea.ref_name }}"
|
||||||
|
files: "${{ gitea.event.repository.name }}-${{ gitea.ref_name }}-${{ matrix.name }}.${{ matrix.archive }}"
|
||||||
|
Reference in New Issue
Block a user