Skip to content

Release dev version #38

Release dev version

Release dev version #38

Workflow file for this run

name: Release dev version
on: [workflow_dispatch]
permissions: # Exchange the OIDC token (JWT) for a cloud access token
id-token: write # This is required for requesting the JWT
contents: write # This is required for actions/checkout
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::173728190221:role/github-CLI-upload
aws-region: us-east-2
- name: Check out
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set Github identity
run: |
git config --global user.name clojure-build
git config --global user.email "[email protected]"
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'temurin'
- name: Set up Clojure
uses: DeLaGuardo/[email protected]
with:
cli: 1.11.1.1347
- name: Cache clojure dependencies
uses: actions/cache@v3
with:
path: |
~/.m2/repository
~/.gitlibs
key: cljdeps-${{ hashFiles('deps.edn') }}
restore-keys: cljdeps-
- name: Calculate version
run: |
script/update_version
echo "VERSION=$(cat VERSION)" >> "$GITHUB_ENV"
- name: Package release
run: clojure -T:build release
- name: Upload release to site
run: script/publish.sh
env:
S3_BUCKET: ${{ secrets.S3_BUCKET }}
- name: Tag release
run: |
git tag -a "$VERSION" -m "$VERSION"
git push --tags
git push
- name: Upload to github release
run: gh release create "$VERSION" -p -t "$VERSION" "target/clojure@$VERSION.rb" "target/clojure-tools-$VERSION.tar.gz" "target/clojure-tools-$VERSION.tar.gz.sha256" "target/linux-install.sh" "target/posix-install.sh" "target/clojure-tools.zip" "target/win-install.ps1" "target/clojure-tools.zip.sha256"
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
- name: Publish versioned brew recipe to tap
run: gh workflow run -R clojure/homebrew-tools publish -r master -f "version=$VERSION"
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}