Version 2.4.3 #23
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
# Workflow executed on "release" events. | |
name: release | |
on: | |
release: | |
types: [published] | |
jobs: | |
# Deploy to Github Packages. | |
deploy: | |
name: Deploy to Github Packages | |
runs-on: ubuntu-latest | |
container: | |
image: maven:3.6-alpine | |
steps: | |
# Retrieve the code from Github. | |
- uses: actions/checkout@v2 | |
# Compile | |
- name: Compile the WAR archive. | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: mvn -B -e --settings settings.xml package | |
# Upload | |
- name: Upload Release Asset | |
id: upload-release-asset | |
# https://github.com/actions/upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ github.event.release.upload_url }} | |
# NOTE: actions/upload-release-asset@v1 do not support metacharacters in asset_path | |
# https://github.com/actions/upload-release-asset/issues/47 | |
asset_path: target/atlasmapper.zip | |
asset_name: atlasmapper_${{ github.event.release.tag_name }}.zip | |
asset_content_type: application/zip |