Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload package to github #238

Merged
merged 1 commit into from
Aug 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- run: echo "::set-output name=name::${GITHUB_REF:10}"
id: version
- name: Update Version
run: ./mvnw versions:set -DnewVersion=${GITHUB_REF:10}
- name: Save Settings
run: echo ${BINTRAY_SETTINGS} > ~/.m2/settings.xml
run: ./mvnw versions:set -DnewVersion=${{ steps.version.outputs.name }}
- name: Build Package
run: ./mvnw package
- name: Upload Package
uses: actions/upload-release-asset@v1
env:
BINTRAY_SETTINGS: ${{ secrets.BINTRAY_SETTINGS }}
- name: Release
run: ./mvnw deploy
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_API_KEY: ${{ secrets.BINTRAY_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./target/allure-bamboo-${{ steps.version.outputs.name }}.jar
asset_name: allure-bamboo-${{ steps.version.outputs.name }}.jar
asset_content_type: application/octet-stream