Skip to content

Commit

Permalink
Deploy: Merge final release v1.06 build 1 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
F4bioo authored Jun 17, 2024
2 parents 8c62990 + 75825bc commit 31fe330
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/publish-library.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,43 @@
name: Publish Library

on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:

jobs:
publish:
check_environment:
name: Check Environment
runs-on: ubuntu-latest
steps:
- name: Check if Running on develop
run: |
if [[ "${{ github.ref }}" != "refs/heads/master" ]]; then
echo "This workflow can only be run on the master branch. Exiting."
exit 1
fi
- name: Check Authorized User
run: |
if [[ "${{ github.actor }}" != "F4bioo" ]]; then
echo "Unauthorized user. Exiting."
exit 1
fi
maven-publish:
needs: check_environment
name: Maven Publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master
token: ${{ secrets.MY_GH_TOKEN }}

- name: Pull Latest Changes From master
run: |
git pull --rebase origin master
- name: Cache Gradle dependencies
uses: actions/cache@v2
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ jobs:
mv lib-build-artifacts.zip ../lib-build-artifacts
shell: bash

- name: List LIB Build Artifacts Folder
run: ls -l lib-build-artifacts

- name: Upload LIB Build Artifacts
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -283,7 +286,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: lib-build-artifacts/lib-build-artifacts.zip
asset_name: tourtip-v${{ env.RELEASE_TAG }}.zip
asset_name: tourtip-library-v${{ env.RELEASE_TAG }}-artifacts.zip
asset_content_type: application/zip

- name: Delete Release Artifacts
Expand Down

0 comments on commit 31fe330

Please sign in to comment.