diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55bac62..4f66c1c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,10 +2,6 @@ name: Build on: push: -concurrency: - group: ${{ github.ref }} - cancel-in-progress: true - jobs: checks: runs-on: ubuntu-latest @@ -56,16 +52,3 @@ jobs: with: name: packages path: builddir/packages/*.rpm - - - name: "Release" - if: startsWith(github.ref, 'refs/tags/v') - uses: softprops/action-gh-release@v1 - with: - files: | - builddir/packages/*.rpm - - deploy: - needs: ["build"] - if: startsWith(github.ref, 'refs/tags/v') - uses: ./.github/workflows/deploy.yaml - secrets: inherit diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml deleted file mode 100644 index 587e493..0000000 --- a/.github/workflows/deploy.yaml +++ /dev/null @@ -1,42 +0,0 @@ -name: Deploy DNF repo - -concurrency: - group: deploy - cancel-in-progress: true - -on: - workflow_call: - workflow_dispatch: - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: "Checkout" - uses: actions/checkout@v3 - - - name: "Download release" - uses: robinraju/release-downloader@v1.8 - with: - latest: true - fileName: "*" - out-file-path: "builddir/packages" - - - name: "Build DNF Repo" - run: | - docker run -t \ - -v $PWD:/repo \ - -e SIGNING_KEY \ - ghcr.io/t2linux/fedora-dev:latest \ - /repo/create-repo.sh - env: - SIGNING_KEY: ${{ secrets.SIGNING_KEY_F39 }} - - - name: "Deploy DNF repo" - uses: nwtgck/actions-netlify@v2.0 - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - with: - publish-dir: builddir/dnf-repo - production-deploy: ${{ startsWith(github.ref, 'refs/tags/v') }}