From 0717f0dbc290633a2c95dc78fc140628671282b9 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Fri, 7 Jul 2023 12:04:07 +0500 Subject: [PATCH] Split the autorelease action into a separate workflow --- .github/workflows/conty-autorelease.yml | 36 +++++++++++++++++++++++++ .github/workflows/conty.yml | 22 ++------------- 2 files changed, 38 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/conty-autorelease.yml diff --git a/.github/workflows/conty-autorelease.yml b/.github/workflows/conty-autorelease.yml new file mode 100644 index 0000000..44dab0e --- /dev/null +++ b/.github/workflows/conty-autorelease.yml @@ -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 diff --git a/.github/workflows/conty.yml b/.github/workflows/conty.yml index 9036d43..afbeaff 100644 --- a/.github/workflows/conty.yml +++ b/.github/workflows/conty.yml @@ -17,27 +17,9 @@ jobs: 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: 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