diff --git a/.github/workflows/create-archives.yml b/.github/workflows/create-archives.yml deleted file mode 100644 index 9db9e608..00000000 --- a/.github/workflows/create-archives.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Create Archives of Bootstrap Projects - -on: - pull_request: - branches: - - main - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - check_changes: - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: read - outputs: - bootstrap: ${{ steps.filter.outputs.bootstrap }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Filter changed files - uses: dorny/paths-filter@v3 - id: filter - with: - filters: | - bootstrap: - - 'bootstrap*/**' - - 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 }} - - diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index af1ffea9..189496a8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -40,6 +41,9 @@ jobs: - 'sdk-go/**' cli: - 'cli/**' + bootstrap: + - 'bootstrap*/**' + publish-cli: needs: check_changes @@ -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 }}