Skip to content

Commit

Permalink
chore: legger til release action
Browse files Browse the repository at this point in the history
  • Loading branch information
frode-carlsen authored Mar 12, 2020
1 parent 5b1b7f5 commit 30e5036
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,19 @@ jobs:
with:
java-version: '11.x'
- name: Build & Deploy
run: ./mvnw clean deploy --batch-mode --settings ./.github/settings.xml -Dmaven.wagon.http.pool=false --file pom.xml -Dsha1=".$(git rev-parse --short HEAD)" -Dchangelist=
run: |
mvn clean deploy --batch-mode --settings ./.github/settings.xml -Dmaven.wagon.http.pool=false --file pom.xml -Dsha1=".$(git rev-parse --short HEAD)" -Dchangelist=
echo "::set-env name=MVN_VERSION::$(mvn help:evaluate --batch-mode --settings ./.github/settings.xml --file .flattened -Dexpression=project.version -q -DforceStdout)"
env:
GITHUB_USERNAME: x-access-token
GITHUB_PASSWORD: ${{ secrets.GITHUB_ACCESS_TOKEN }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ env.MVN_VERSION }}
release_name: Release ${{ env.MVN_VERSION }}
draft: false
prerelease: false

0 comments on commit 30e5036

Please sign in to comment.