mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-26 09:58:38 +01:00
Split the autorelease action into a separate workflow
This commit is contained in:
parent
91aa7b01b4
commit
0717f0dbc2
2 changed files with 38 additions and 20 deletions
36
.github/workflows/conty-autorelease.yml
vendored
Normal file
36
.github/workflows/conty-autorelease.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
name: Conty AutoRelease CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Build Conty
|
||||||
|
run: |
|
||||||
|
chmod +x create-arch-bootstrap.sh create-conty.sh
|
||||||
|
sed -i 's/sed/#sed/g' create-arch-bootstrap.sh
|
||||||
|
sudo ./create-arch-bootstrap.sh && ./create-conty.sh
|
||||||
|
|
||||||
|
- uses: dev-drprasad/delete-tag-and-release@v1.0
|
||||||
|
with:
|
||||||
|
tag_name: continuous
|
||||||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
delete_release: true
|
||||||
|
|
||||||
|
- uses: rickstaa/action-create-tag@v1
|
||||||
|
id: "tag_create"
|
||||||
|
with:
|
||||||
|
tag: "continuous"
|
||||||
|
|
||||||
|
- uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: conty.sh
|
||||||
|
prerelease: true
|
||||||
|
draft: false
|
||||||
|
tag_name: continuous
|
||||||
|
name: Continuous build
|
22
.github/workflows/conty.yml
vendored
22
.github/workflows/conty.yml
vendored
|
@ -17,27 +17,9 @@ jobs:
|
||||||
chmod +x create-arch-bootstrap.sh create-conty.sh
|
chmod +x create-arch-bootstrap.sh create-conty.sh
|
||||||
sed -i 's/sed/#sed/g' create-arch-bootstrap.sh
|
sed -i 's/sed/#sed/g' create-arch-bootstrap.sh
|
||||||
sudo ./create-arch-bootstrap.sh && ./create-conty.sh
|
sudo ./create-arch-bootstrap.sh && ./create-conty.sh
|
||||||
|
|
||||||
- uses: dev-drprasad/delete-tag-and-release@v1.0
|
|
||||||
with:
|
|
||||||
tag_name: continuous
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
delete_release: true
|
|
||||||
|
|
||||||
- uses: rickstaa/action-create-tag@v1
|
- name: Upload artifact
|
||||||
id: "tag_create"
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
|
||||||
tag: "continuous"
|
|
||||||
|
|
||||||
- uses: softprops/action-gh-release@v1
|
|
||||||
with:
|
|
||||||
files: conty.sh
|
|
||||||
prerelease: true
|
|
||||||
draft: true
|
|
||||||
tag_name: continuous
|
|
||||||
name: Continuous build
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
with:
|
||||||
name: Conty
|
name: Conty
|
||||||
path: conty.sh
|
path: conty.sh
|
||||||
|
|
Loading…
Reference in a new issue