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: fix snapshots deploy #6518

Merged
merged 1 commit into from
Jan 23, 2024
Merged
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
13 changes: 6 additions & 7 deletions .github/workflows/snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@ jobs:
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]
- uses: taiga-family/ci/actions/setup/[email protected]

- run: npx nx build demo -c next
- run: tree ${{ env.DIST }} -P '*.html'
- name: Publish snapshots
- run: npx nx build demo --output-path ${{ env.DIST_NEXT }}
- run: tree ${{ env.DIST_NEXT }} -P '*.html'
- name: Publish next snapshots
uses: s0/[email protected]
env:
REPO: self
FOLDER: ${{ env.DIST }}/next
FOLDER: ${{ env.DIST_NEXT }}
BRANCH: snapshots/demo/next/${{ github.head_ref || github.ref_name }}
GITHUB_TOKEN: ${{ secrets.TAIGA_FAMILY_BOT_PAT }}

snapshots-of-release:
snapshots-production:
if: ${{ contains(github.head_ref || github.ref_name, 'release/') || github.event.inputs.updateMain == 'true' }}
name: production
runs-on: ubuntu-latest
Expand All @@ -41,7 +40,7 @@ jobs:

- run: npx nx prerender demo
- run: tree ${{ env.DIST }} -P '*.html'
- name: Publish snapshots
- name: Publish production snapshots
uses: s0/[email protected]
env:
REPO: self
Expand Down
Loading