Split the autorelease action into a separate workflow

This commit is contained in:
Kron4ek 2023-07-07 12:04:07 +05:00
parent 91aa7b01b4
commit 0717f0dbc2
2 changed files with 38 additions and 20 deletions

36
.github/workflows/conty-autorelease.yml vendored Normal file
View 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

View file

@ -18,26 +18,8 @@ jobs:
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: true
tag_name: continuous
name: Continuous build
- uses: actions/upload-artifact@v3
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Conty
path: conty.sh