aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..a6cb469
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,52 @@
+name: Tag and Release
+on: workflow_dispatch
+
+jobs:
+ tag-and-release:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ # NOTE: Fetch all for counting commits
+ fetch-depth: 0
+ - uses: actions/setup-java@v3
+ with:
+ distribution: 'adopt'
+ java-version: 21
+ - uses: DeLaGuardo/setup-clojure@13.4
+ with:
+ cli: 1.10.1.693
+
+ - name: Show versions
+ run: |
+ java -version
+ clojure --version
+
+ - name: deploy to clojars
+ # NOTE: Specify ID to refer outputs from other steps
+ id: deploy
+ run: |
+ clojure -T:build deploy
+ env:
+ CLOJARS_PASSWORD: ${{secrets.CLOJARS_PASSWORD}}
+ CLOJARS_USERNAME: ${{secrets.CLOJARS_USERNAME}}
+
+ - uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ # NOTE: Refer outputs
+ tag_name: ${{ steps.deploy.outputs.version }}
+ release_name: ${{ steps.deploy.outputs.version }}
+ body: released
+ draft: false
+ prerelease: false
+
+ - run: |
+ clojure -T:build update-documents
+ git diff
+ git config --global user.email "github-actions@example.com"
+ git config --global user.name "github-actions"
+ git add -A
+ git commit -m "Update for release"
+ git push \ No newline at end of file