mirror of
https://github.com/rocky-linux/rocky-logos.git
synced 2024-11-22 04:41:34 +00:00
feat: implement tag-based ci
This commit is contained in:
parent
db3f422e26
commit
49bdd75ea1
29
.github/workflows/main.yml
vendored
29
.github/workflows/main.yml
vendored
@ -1,6 +1,9 @@
|
|||||||
---
|
---
|
||||||
name: 'Release Formatting'
|
name: 'Release Formatting'
|
||||||
on: [ push ]
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package:
|
package:
|
||||||
@ -9,12 +12,24 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build source artifact
|
- name: Build source artifact
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ../rocky-logos-83.0 &&
|
mkdir -p ../rocky-logos-${GITHUB_REF##*/} &&
|
||||||
cp -r . ../rocky-logos-83.0 &&
|
cp -r . ../rocky-logos-${GITHUB_REF##*/} &&
|
||||||
mv ../rocky-logos-83.0 . &&
|
mv ../rocky-logos-${GITHUB_REF##*/} . &&
|
||||||
tar cfj rocky-logos-83.0.tar.xz rocky-logos-83.0
|
tar cfj rocky-logos-${GITHUB_REF##*/}.tar.xz rocky-logos-${GITHUB_REF##*/}
|
||||||
- name: Publish artifact
|
- name: Publish artifact
|
||||||
uses: actions/upload-artifact@v2.2.3
|
uses: actions/upload-artifact@v2.2.3
|
||||||
with:
|
with:
|
||||||
name: rocky-logos-83.0.tar.xz
|
name: rocky-logos-${GITHUB_REF##*/}.tar.xz
|
||||||
path: rocky-logos-83.0.tar.xz
|
path: rocky-logos-${GITHUB_REF##*/}.tar.xz
|
||||||
|
- name: Generate release
|
||||||
|
uses: docker://antonyurchenko/git-release:latest
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
DRAFT_RELEASE: "false"
|
||||||
|
PRE_RELEASE: "false"
|
||||||
|
CHANGELOG_FILE: "none"
|
||||||
|
ALLOW_EMPTY_CHANGELOG: "false"
|
||||||
|
ALLOW_TAG_PREFIX: "true"
|
||||||
|
with:
|
||||||
|
args: |
|
||||||
|
rocky-logos-${GITHUB_REF##*/}.tar.xz
|
||||||
|
Loading…
Reference in New Issue
Block a user