diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 3d9678a0..a00575a0 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -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 'actions@github.com' -# 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 'actions@github.com' + # 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 @@ -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 'actions@github.com' -# 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 'actions@github.com' + # 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() @@ -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 'actions@github.com' -# 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 'actions@github.com' + # 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() @@ -283,7 +283,7 @@ 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: | @@ -291,4 +291,6 @@ jobs: git config --global user.name 'GitHub Actions' git config --global user.email 'actions@github.com' 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