Skip to content

Commit

Permalink
ci: Run bootstrap archive on main (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnjcsmith authored Nov 27, 2024
1 parent e1aa701 commit 2c4779a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 67 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/create-archives.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
sdk_dotnet: ${{ steps.filter.outputs.sdk_dotnet }}
sdk_go: ${{ steps.filter.outputs.sdk_go }}
cli: ${{ steps.filter.outputs.cli }}
bootstrap: ${{ steps.filter.outputs.bootstrap }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -40,6 +41,9 @@ jobs:
- 'sdk-go/**'
cli:
- 'cli/**'
bootstrap:
- 'bootstrap*/**'
publish-cli:
needs: check_changes
Expand Down Expand Up @@ -272,3 +276,37 @@ jobs:
run: |
git tag sdk-go/v${{ steps.increment_version.outputs.new_version }}
git push origin sdk-go/v${{ steps.increment_version.outputs.new_version }}
create-archives:
runs-on: ubuntu-latest
needs: check_changes
if: ${{ needs.check_changes.outputs.bootstrap == 'true' }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Archive bootstrap-node
run: |
zip -r "archives/bootstrap-node.zip" "bootstrap-node/"
- name: Archive bootstrap-dotnet
run: |
zip -r "archives/bootstrap-dotnet.zip" "bootstrap-dotnet/"
- name: Archive bootstrap-go
run: |
zip -r "archives/bootstrap-go.zip" "bootstrap-go/"
- name: Commit archives
uses: EndBug/add-and-commit@v9
with:
add: 'archives/'
message: '[skip ci] Update bootstrap project archives'
default_author: github_actions
push: true
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2c4779a

Please sign in to comment.