Skip to content

v2.3.0

v2.3.0 #50

Workflow file for this run

name: Deploy
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get plugin version
id: yaml-data
uses: KJ002/[email protected]
with:
file: '${{ github.workspace }}/Plugin/src/main/resources/plugin.yml'
key-path: '["version"]'
- name: Store version
uses: "finnp/[email protected]"
env:
FILE_NAME: "version.html"
FILE_DATA: "${{ steps.yaml-data.outputs.data }}"
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package
- name: 'Set up GCoogle Cloud Envoirement'
uses: 'google-github-actions/[email protected]'
with:
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- name: 'Set up Cloud SDK'
uses: 'google-github-actions/[email protected]'
- name: 'Use gcloud CLI'
run: 'gcloud info'
- name: 'Deploy'
uses: 'google-github-actions/[email protected]'
with:
path: '/home/runner/work/SilkSpawners_v2/SilkSpawners_v2/target/SilkSpawners_v2.jar'
destination: '${{ secrets.GCS_BUCKET }}/${{ steps.yaml-data.outputs.data }}'
- name: 'Update version'
uses: 'google-github-actions/[email protected]'
with:
path: 'version.html'
destination: '${{ secrets.GCS_BUCKET }}'