From 3b92beade7e5b427f2f1e728eaa125566e5afcc8 Mon Sep 17 00:00:00 2001 From: Cliff Casey Date: Tue, 16 Jul 2024 13:19:25 -0400 Subject: [PATCH 1/7] release step with file addition --- .github/workflows/build.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3edd9c6e..2dd5a7ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,3 +82,26 @@ 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@v3 + + - name: Download Bundle Artifact + uses: actions/download-artifact@v3 + with: + name: datasim-bundle-artifact-${{ github.sha }} + + - name: Craft Draft Release + uses: softprops/action-gh-release@v1 + with: + # Defaults: + # name: [tag name] + # tag_name: github.ref + body: "## Release Notes\nTODO: Create great release notes!" + draft: true + files: datasim-bundle.zip From 3f9f260cf91c8db9e23c360a846d6996cce4fbc4 Mon Sep 17 00:00:00 2001 From: Cliff Casey Date: Tue, 16 Jul 2024 13:27:35 -0400 Subject: [PATCH 2/7] testing release --- .github/workflows/build.yml | 49 +++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2dd5a7ac..e4070fe1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,30 +58,31 @@ jobs: name: datasim-bundle-artifact-${{ github.sha }} path: datasim-bundle.zip - deploy: - runs-on: ubuntu-latest - - if: ${{ github.ref_type == 'tag' }} - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Setup CD environment - uses: yetanalytics/action-setup-env@v1 - - - name: Extract version - id: version - run: echo version=${GITHUB_REF#refs\/tags\/v} >> $GITHUB_OUTPUT - - - name: Build and deploy to Clojars - uses: yetanalytics/action-deploy-clojars@v1 - with: - artifact-id: 'datasim' - version: ${{ steps.version.outputs.version }} - resource-dirs: '[]' - clojars-username: ${{ secrets.CLOJARS_USERNAME }} - clojars-deploy-token: ${{ secrets.CLOJARS_PASSWORD }} +# Temporarily commenting deploy to test release +# deploy: +# runs-on: ubuntu-latest +# +# if: ${{ github.ref_type == 'tag' }} +# +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 +# +# - name: Setup CD environment +# uses: yetanalytics/action-setup-env@v1 +# +# - name: Extract version +# id: version +# run: echo version=${GITHUB_REF#refs\/tags\/v} >> $GITHUB_OUTPUT +# +# - name: Build and deploy to Clojars +# uses: yetanalytics/action-deploy-clojars@v1 +# with: +# artifact-id: 'datasim' +# version: ${{ steps.version.outputs.version }} +# resource-dirs: '[]' +# clojars-username: ${{ secrets.CLOJARS_USERNAME }} +# clojars-deploy-token: ${{ secrets.CLOJARS_PASSWORD }} release: runs-on: ubuntu-latest From 495a5e81c69dd9fd2705a27aebd1e96746c06b0a Mon Sep 17 00:00:00 2001 From: Cliff Casey Date: Tue, 16 Jul 2024 13:41:06 -0400 Subject: [PATCH 3/7] uncommenting deploy --- .github/workflows/build.yml | 49 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4070fe1..ce330dd4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -58,31 +58,30 @@ jobs: name: datasim-bundle-artifact-${{ github.sha }} path: datasim-bundle.zip -# Temporarily commenting deploy to test release -# deploy: -# runs-on: ubuntu-latest -# -# if: ${{ github.ref_type == 'tag' }} -# -# steps: -# - name: Checkout repository -# uses: actions/checkout@v3 -# -# - name: Setup CD environment -# uses: yetanalytics/action-setup-env@v1 -# -# - name: Extract version -# id: version -# run: echo version=${GITHUB_REF#refs\/tags\/v} >> $GITHUB_OUTPUT -# -# - name: Build and deploy to Clojars -# uses: yetanalytics/action-deploy-clojars@v1 -# with: -# artifact-id: 'datasim' -# version: ${{ steps.version.outputs.version }} -# resource-dirs: '[]' -# clojars-username: ${{ secrets.CLOJARS_USERNAME }} -# clojars-deploy-token: ${{ secrets.CLOJARS_PASSWORD }} + deploy: + runs-on: ubuntu-latest + + if: ${{ github.ref_type == 'tag' }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Setup CD environment + uses: yetanalytics/action-setup-env@v1 + + - name: Extract version + id: version + run: echo version=${GITHUB_REFrefs\/tags\/v} >> $GITHUB_OUTPUT + + - name: Build and deploy to Clojars + uses: yetanalytics/action-deploy-clojars@v1 + with: + artifact-id: 'datasim' + version: ${{ steps.version.outputs.version }} + resource-dirs: '[]' + clojars-username: ${{ secrets.CLOJARS_USERNAME }} + clojars-deploy-token: ${{ secrets.CLOJARS_PASSWORD }} release: runs-on: ubuntu-latest From 29ed3ee3a78dcb5b55bf3ce2a41b41e6113a23b6 Mon Sep 17 00:00:00 2001 From: Cliff Casey Date: Tue, 16 Jul 2024 13:41:36 -0400 Subject: [PATCH 4/7] typo --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce330dd4..2dd5a7ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -72,7 +72,7 @@ jobs: - name: Extract version id: version - run: echo version=${GITHUB_REFrefs\/tags\/v} >> $GITHUB_OUTPUT + run: echo version=${GITHUB_REF#refs\/tags\/v} >> $GITHUB_OUTPUT - name: Build and deploy to Clojars uses: yetanalytics/action-deploy-clojars@v1 From 4fb3a71b612478da54c6478987e80ab161542e53 Mon Sep 17 00:00:00 2001 From: Cliff Casey Date: Tue, 16 Jul 2024 14:10:29 -0400 Subject: [PATCH 5/7] no release notes --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2dd5a7ac..140a1631 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -102,6 +102,5 @@ jobs: # Defaults: # name: [tag name] # tag_name: github.ref - body: "## Release Notes\nTODO: Create great release notes!" draft: true files: datasim-bundle.zip From e615f1ab138feb6b5a59498d1b6a29c8023f46d8 Mon Sep 17 00:00:00 2001 From: Cliff Casey Date: Tue, 16 Jul 2024 14:24:40 -0400 Subject: [PATCH 6/7] checkout and download version --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 140a1631..39d5de6b 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 @@ -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 @@ -89,15 +89,15 @@ jobs: if: ${{ github.ref_type == 'tag' }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download Bundle Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: datasim-bundle-artifact-${{ github.sha }} - name: Craft Draft Release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: # Defaults: # name: [tag name] From fa26fc922308ab5da6be703fac6b9eb7e84fb6a4 Mon Sep 17 00:00:00 2001 From: Cliff Casey Date: Tue, 16 Jul 2024 14:47:21 -0400 Subject: [PATCH 7/7] bumping upload action --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39d5de6b..37b946fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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