Skip to content

Commit

Permalink
Update release_with_jars.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
asmfstatoil authored May 2, 2023
1 parent 0d3ef94 commit ea1ac99
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions .github/workflows/release_with_jars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ jobs:

create_release:
name: Create release v${{ needs.get_versions.outputs.version_8 }}
if: false
runs-on: ubuntu-latest
needs: [get_versions, compile_java_8, compile_java_11]

Expand All @@ -115,29 +114,28 @@ jobs:
artifacts: "*.jar"
artifactContentType: application/java-archive

# Needs to delete the old jars manually
# # Needs to delete the old jars manually
# - run: mkdir lib && cp *.jar lib/
# - run: cd lib && mkdir libj8 && mv *Java8.jar libj8/ && cd ..

- run: mkdir lib && cp *.jar lib/
- run: cd lib && mkdir libj8 && mv *Java8.jar libj8/ && cd ..
# - name: Create release branch in neqsimpython repo
# uses: GuillaumeFalourd/create-other-repo-branch-action@v1.5
# with:
# repository_owner: Equinor
# repository_name: neqsimpython
# new_branch_name: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }}
# ssh_deploy_key: ${{ secrets.SSH_DEPLOY_KEY }}

- name: Create release branch in neqsimpython repo
uses: GuillaumeFalourd/create-other-repo-branch-action@v1.5
with:
repository_owner: Equinor
repository_name: neqsimpython
new_branch_name: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }}
ssh_deploy_key: ${{ secrets.SSH_DEPLOY_KEY }}

- name: Push directory to another repository
uses: cpina/github-action-push-to-another-repository@v1.5.1
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: 'lib'
destination-github-username: 'equinor'
destination-repository-name: 'neqsimpython'
user-email: asmf@equinor.com
target-branch: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }}
target-directory: neqsim/lib
commit_message: 'chore: updated jar-files'
# - name: Push directory to another repository
# uses: cpina/github-action-push-to-another-repository@v1.5.1
# env:
# SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
# with:
# source-directory: 'lib'
# destination-github-username: 'equinor'
# destination-repository-name: 'neqsimpython'
# user-email: asmf@equinor.com
# target-branch: NeqSim-jars-updated-${{ needs.get_versions.outputs.version_8 }}
# target-directory: neqsim/lib
# commit_message: 'chore: updated jar-files'

0 comments on commit ea1ac99

Please sign in to comment.