mirror of
https://github.com/rocky-linux/rocky-logos.git
synced 2024-12-22 18:08:30 +00:00
fix workflow
This commit is contained in:
parent
5430ab4c96
commit
7dbcf103d9
36
.github/workflows/main.yml
vendored
36
.github/workflows/main.yml
vendored
@ -9,7 +9,9 @@ jobs:
|
|||||||
package:
|
package:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Extract tag name
|
- name: Extract tag name
|
||||||
id: tag
|
id: tag
|
||||||
uses: actions/github-script@0.2.0
|
uses: actions/github-script@0.2.0
|
||||||
@ -19,21 +21,31 @@ jobs:
|
|||||||
return context.payload.ref
|
return context.payload.ref
|
||||||
.replace(/\/refs\/tags\//, '')
|
.replace(/\/refs\/tags\//, '')
|
||||||
.replace(/refs\/tags\//, '');
|
.replace(/refs\/tags\//, '');
|
||||||
|
|
||||||
- name: Build source artifact
|
- name: Build source artifact
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ../rocky-logos-${{ steps.tag.outputs.result }} &&
|
mkdir -p ../rocky-logos-${{ steps.tag.outputs.result }} &&
|
||||||
cp -r . ../rocky-logos-${{ steps.tag.outputs.result }} &&
|
cp -r . ../rocky-logos-${{ steps.tag.outputs.result }} &&
|
||||||
mv ../rocky-logos-${{ steps.tag.outputs.result }} . &&
|
mv ../rocky-logos-${{ steps.tag.outputs.result }} . &&
|
||||||
tar cfJ rocky-logos-${{ steps.tag.outputs.result }}.tar.xz rocky-logos-${{ steps.tag.outputs.result }}
|
tar cfJ rocky-logos-${{ steps.tag.outputs.result }}.tar.xz rocky-logos-${{ steps.tag.outputs.result }}
|
||||||
- name: Generate release
|
|
||||||
uses: docker://antonyurchenko/git-release:latest
|
- name: Generate Release
|
||||||
env:
|
uses: ncipollo/release-action@v1
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
DRAFT_RELEASE: "false"
|
|
||||||
PRE_RELEASE: "false"
|
|
||||||
CHANGELOG_FILE: "none"
|
|
||||||
ALLOW_EMPTY_CHANGELOG: "false"
|
|
||||||
ALLOW_TAG_PREFIX: "true"
|
|
||||||
with:
|
with:
|
||||||
args: |
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
rocky-logos-${{ steps.tag.outputs.result }}.tar.xz
|
prerelease: false
|
||||||
|
artifacts: "*.tar.xz"
|
||||||
|
|
||||||
|
# - name: Generate release
|
||||||
|
# uses: docker://antonyurchenko/git-release:v3
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# DRAFT_RELEASE: "false"
|
||||||
|
# PRE_RELEASE: "false"
|
||||||
|
# CHANGELOG_FILE: "none"
|
||||||
|
# ALLOW_EMPTY_CHANGELOG: "false"
|
||||||
|
# ALLOW_TAG_PREFIX: "true"
|
||||||
|
# #TAG_PREFIX_REGEX: '(0|[1-9]\d*)?'
|
||||||
|
# with:
|
||||||
|
# args: |
|
||||||
|
# rocky-logos-${{ steps.tag.outputs.result }}.tar.xz
|
||||||
|
Loading…
Reference in New Issue
Block a user