Bump KOTLIN_VERSION from 1.6.21 to 2.0.21 #108
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Build | |
run: | | |
./gradlew run | |
# deploy to github pages only when on master | |
deploy: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Extract branch name | |
shell: bash | |
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" | |
id: extract_branch | |
- name: Checkout | |
uses: actions/[email protected] | |
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }} | |
- name: Build | |
run: | | |
./gradlew run | |
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }} | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: output | |
if: ${{ github.event_name != 'pull_request' && steps.extract_branch.outputs.branch == 'master' }} |