Skip to content

Commit

Permalink
ci: create GitHub Actions workflow for automated release
Browse files Browse the repository at this point in the history
  • Loading branch information
DrumRobot committed May 3, 2023
1 parent 4e23c05 commit 243badb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: 'adopt'
- name: Update Gradle Wrapper Action
uses: gradle-update/update-gradle-wrapper-action@v1
- name: Build with Gradle
run: ./gradlew build
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Automated release created by GitHub Actions.
draft: false
prerelease: false
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/libs/kotlib-all.jar
asset_name: kotlib-all.jar
asset_content_type: application/java-archive
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 243badb

Please sign in to comment.