Skip to content

Commit

Permalink
add push job
Browse files Browse the repository at this point in the history
  • Loading branch information
Parisa68 committed Sep 24, 2024
1 parent 3f8a4d9 commit 28c84aa
Showing 1 changed file with 49 additions and 47 deletions.
96 changes: 49 additions & 47 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,24 +111,24 @@ jobs:
- name: Update version in clearinghouse's build.gradle.kts
run: sed -i "s#version = \".*\"#version = \"${{ steps.bump_clearinghouse_version.outputs.new_clearinghouse_version }}\"#" lib/clearinghouse/build.gradle.kts

- name: Release clearinghouse
run: |
./gradlew :lib:clearinghouse:build
./gradlew :lib:clearinghouse:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Commit and Push Changes
#
# - name: Release clearinghouse
# run: |
# ./gradlew :lib:clearinghouse:build
# ./gradlew :lib:clearinghouse:publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# BRANCH_NAME=${{ github.ref_name }}
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git add -A
# git commit -m "bump clearinghouse version to ${{ steps.bump_clearinghouse_version.outputs.new_clearinghouse_version }}"
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/ELIXIR-NO/FEGA-Norway.git HEAD:refs/heads/$BRANCH_NAME

# - name: Commit and Push Changes
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# BRANCH_NAME=${{ github.ref_name }}
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git add -A
# git commit -m "bump clearinghouse version to ${{ steps.bump_clearinghouse_version.outputs.new_clearinghouse_version }}"
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/ELIXIR-NO/FEGA-Norway.git HEAD:refs/heads/$BRANCH_NAME


- name: Create GitHub release
Expand Down Expand Up @@ -183,23 +183,23 @@ jobs:
- name: Update version in crypt4gh's build.gradle.kts
run: sed -i "s#version = \".*\"#version = \"${{ steps.bump_crypt4gh_version.outputs.new_crypt4gh_version }}\"#" lib/crypt4gh/build.gradle.kts

- name: Release crypt4gh
run: |
./gradlew :lib:crypt4gh:build
./gradlew :lib:crypt4gh:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Commit and Push Changes
# - name: Release crypt4gh
# run: |
# ./gradlew :lib:crypt4gh:build
# ./gradlew :lib:crypt4gh:publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# BRANCH_NAME=${{ github.ref_name }}
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git add -A
# git commit -m "bump crypt4gh version to ${{ steps.bump_crypt4gh_version.outputs.new_crypt4gh_version }}"
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/ELIXIR-NO/FEGA-Norway.git HEAD:refs/heads/$BRANCH_NAME
#
# - name: Commit and Push Changes
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# BRANCH_NAME=${{ github.ref_name }}
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git add -A
# git commit -m "bump crypt4gh version to ${{ steps.bump_crypt4gh_version.outputs.new_crypt4gh_version }}"
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/ELIXIR-NO/FEGA-Norway.git HEAD:refs/heads/$BRANCH_NAME

- name: Create GitHub release
if: success()
Expand Down Expand Up @@ -253,23 +253,23 @@ jobs:
- name: Update version in tsd-file-api-client's build.gradle.kts
run: sed -i "s#version = \".*\"#version = \"${{ steps.bump_tsd-file-api-client_version.outputs.new_tsd-file-api-client_version }}\"#" lib/tsd-file-api-client/build.gradle.kts

- name: Release tsd-file-api-client
run: |
./gradlew :lib:tsd-file-api-client:build
./gradlew :lib:tsd-file-api-client:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Commit and Push Changes
# - name: Release tsd-file-api-client
# run: |
# ./gradlew :lib:tsd-file-api-client:build
# ./gradlew :lib:tsd-file-api-client:publish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# BRANCH_NAME=${{ github.ref_name }}
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git add -A
# git commit -m "bump tsd-file-api-client version to ${{ steps.bump_tsd-file-api-client_version.outputs.new_tsd-file-api-client_version }}"
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/ELIXIR-NO/FEGA-Norway.git HEAD:refs/heads/$BRANCH_NAME

# - name: Commit and Push Changes
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# BRANCH_NAME=${{ github.ref_name }}
# git config --global user.name 'GitHub Actions'
# git config --global user.email '[email protected]'
# git add -A
# git commit -m "bump tsd-file-api-client version to ${{ steps.bump_tsd-file-api-client_version.outputs.new_tsd-file-api-client_version }}"
# git push https://${{ secrets.GITHUB_TOKEN }}@github.com/ELIXIR-NO/FEGA-Norway.git HEAD:refs/heads/$BRANCH_NAME

- name: Create GitHub release
if: success()
Expand All @@ -283,12 +283,14 @@ jobs:

push_versions:
runs-on: ubuntu-latest
needs: [publish-crypt4gh, publish-tsd-file-api-client, publish-clearinghouse, release_fega_norway]
needs: [ publish-crypt4gh, publish-tsd-file-api-client, publish-clearinghouse, release_fega_norway ]
steps:
- name: Push versions
run: |
BRANCH_NAME=${{ github.ref_name }}
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git add -A
git commit -m "bump versions"
git push https://${{ secrets.GITHUB_TOKEN }}@github.com/ELIXIR-NO/FEGA-Norway.git HEAD:refs/heads/$BRANCH_NAME

0 comments on commit 28c84aa

Please sign in to comment.