Skip to content

Commit

Permalink
test using custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Dec 6, 2019
1 parent 40f1c0a commit f00a3fa
Showing 1 changed file with 66 additions and 52 deletions.
118 changes: 66 additions & 52 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,59 +84,73 @@ jobs:
if: github.ref == 'refs/heads/master'
run: $DOCKER_COMMAND echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import && echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust && mvn deploy --settings default.xml -B -P release

- name: create release with tag ${{ env.GITHUB_TAG }}
id: create_release
- name: create github release ${{ env.GITHUB_TAG }}
uses: meeDamian/github-release@1.0
if: github.ref == 'refs/heads/master'
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.GITHUB_TAG }}
release_name: ${{ env.GITHUB_TAG }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.GITHUB_TAG }}
name: ${{ env.GITHUB_TAG }}
body: ${{ env.GIT_RELEASE_NOTES }}
draft: false
prerelease: false
files: >
aemdesign-aem-core-deploy/target/aemdesign-aem-core-deploy-${{ env.GITHUB_TAG }}.zip
aemdesign-aem-services/target/aemdesign-aem-services-${{ env.GITHUB_TAG }}.jar
aemdesign-aem-author/target/aemdesign-aem-author-${{ env.GITHUB_TAG }}.zip
aemdesign-aem-common/target/aemdesign-aem-common-${{ env.GITHUB_TAG }}.zip
- name: upload release asset - aemdesign-aem-core-deploy-${{ env.GITHUB_TAG }}.zip
if: github.ref == 'refs/heads/master'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.zip', 'core-deploy', env.GITHUB_TAG) }}
asset_name: ${{ format('aemdesign-aem-{0}-{1}.zip', 'core-deploy', env.GITHUB_TAG) }}
asset_content_type: application/zip

- name: upload release asset - aemdesign-aem-services-${{ env.GITHUB_TAG }}.zip
if: github.ref == 'refs/heads/master'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.jar', 'services', env.GITHUB_TAG) }}
asset_name: ${{ format('aemdesign-aem-{0}-{1}.jar', 'services', env.GITHUB_TAG) }}
asset_content_type: application/zip

- name: upload release asset - aemdesign-aem-author-${{ env.GITHUB_TAG }}.zip
if: github.ref == 'refs/heads/master'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.zip', 'author', env.GITHUB_TAG) }}
asset_name: ${{ format('aemdesign-aem-{0}-{1}.zip', 'author', env.GITHUB_TAG) }}
asset_content_type: application/zip

- name: upload release asset - aemdesign-aem-common-${{ env.GITHUB_TAG }}.zip
if: github.ref == 'refs/heads/master'
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.zip', 'common', env.GITHUB_TAG) }}
asset_name: ${{ format('aemdesign-aem-{0}-{1}.zip', 'common', env.GITHUB_TAG) }}
asset_content_type: application/zip
# - name: create release with tag ${{ env.GITHUB_TAG }}
# id: create_release
# if: github.ref == 'refs/heads/master'
# uses: actions/create-release@v1.0.0
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ env.GITHUB_TAG }}
# release_name: ${{ env.GITHUB_TAG }}
# body: ${{ env.GIT_RELEASE_NOTES }}
# draft: false
# prerelease: false
#
# - name: upload release asset - aemdesign-aem-core-deploy-${{ env.GITHUB_TAG }}.zip
# if: github.ref == 'refs/heads/master'
# uses: actions/upload-release-asset@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.zip', 'core-deploy', env.GITHUB_TAG) }}
# asset_name: ${{ format('aemdesign-aem-{0}-{1}.zip', 'core-deploy', env.GITHUB_TAG) }}
# asset_content_type: application/zip
#
# - name: upload release asset - aemdesign-aem-services-${{ env.GITHUB_TAG }}.zip
# if: github.ref == 'refs/heads/master'
# uses: actions/upload-release-asset@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.jar', 'services', env.GITHUB_TAG) }}
# asset_name: ${{ format('aemdesign-aem-{0}-{1}.jar', 'services', env.GITHUB_TAG) }}
# asset_content_type: application/zip
#
# - name: upload release asset - aemdesign-aem-author-${{ env.GITHUB_TAG }}.zip
# if: github.ref == 'refs/heads/master'
# uses: actions/upload-release-asset@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.zip', 'author', env.GITHUB_TAG) }}
# asset_name: ${{ format('aemdesign-aem-{0}-{1}.zip', 'author', env.GITHUB_TAG) }}
# asset_content_type: application/zip
#
# - name: upload release asset - aemdesign-aem-common-${{ env.GITHUB_TAG }}.zip
# if: github.ref == 'refs/heads/master'
# uses: actions/upload-release-asset@v1.0.1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ steps.create_release.outputs.upload_url }}
# asset_path: ${{ format('./aemdesign-aem-{0}/target/aemdesign-aem-{0}-{1}.zip', 'common', env.GITHUB_TAG) }}
# asset_name: ${{ format('aemdesign-aem-{0}-{1}.zip', 'common', env.GITHUB_TAG) }}
# asset_content_type: application/zip

0 comments on commit f00a3fa

Please sign in to comment.