Skip to content

Commit

Permalink
Merge pull request #138 from yetanalytics/release_with_bundle
Browse files Browse the repository at this point in the history
release step with file addition
  • Loading branch information
cliffcaseyyet authored Jul 16, 2024
2 parents 2a15077 + fa26fc9 commit be1195a
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup CI environment
uses: yetanalytics/actions/[email protected]
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit be1195a

Please sign in to comment.