diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3edd9c6e..37b946fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup CI environment uses: yetanalytics/actions/setup-env@v0.0.4 @@ -53,7 +53,7 @@ jobs: zip -r ../../datasim-bundle.zip ./ - name: Archive Bundle - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: datasim-bundle-artifact-${{ github.sha }} path: datasim-bundle.zip @@ -65,7 +65,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup CD environment uses: yetanalytics/action-setup-env@v1 @@ -82,3 +82,25 @@ jobs: resource-dirs: '[]' clojars-username: ${{ secrets.CLOJARS_USERNAME }} clojars-deploy-token: ${{ secrets.CLOJARS_PASSWORD }} + + release: + runs-on: ubuntu-latest + needs: build + if: ${{ github.ref_type == 'tag' }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Download Bundle Artifact + uses: actions/download-artifact@v4 + with: + name: datasim-bundle-artifact-${{ github.sha }} + + - name: Craft Draft Release + uses: softprops/action-gh-release@v2 + with: + # Defaults: + # name: [tag name] + # tag_name: github.ref + draft: true + files: datasim-bundle.zip