Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Run bootstrap archive on main #133

Merged
merged 1 commit into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}