Skip to content

Commit

Permalink
Publish test-snaps to latest folder (#1880)
Browse files Browse the repository at this point in the history
This adds a job to CI to publish test-snaps to the `/test-snaps/latest`
folder, in addition to the versioned folder.

Closes MetaMask/MetaMask-planning#1526.
  • Loading branch information
Mrtenz authored Oct 23, 2023
1 parent 9f11b79 commit ff98c8b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,20 @@ jobs:
secrets:
PUBLISH_PAGES_TOKEN: ${{ secrets.PUBLISH_PAGES_TOKEN }}

publish-test-snaps-latest:
name: Publish test snaps to `latest` folder
needs: is-test-snaps-release
if: ${{ needs.is-test-snaps-release.outputs.IS_TEST_SNAPS_RELEASE == 'true' }}
permissions:
contents: write
uses: ./.github/workflows/publish-github-pages.yml
with:
build_script: yarn workspace @metamask/test-snaps build
destination_dir: test-snaps/latest
publish_dir: ./packages/test-snaps/dist
secrets:
PUBLISH_PAGES_TOKEN: ${{ secrets.PUBLISH_PAGES_TOKEN }}

is-simulator-release:
name: Determine whether this release updates the simulator
runs-on: ubuntu-latest
Expand Down

0 comments on commit ff98c8b

Please sign in to comment.