Skip to content

Commit

Permalink
chore(gh-action): fix the action
Browse files Browse the repository at this point in the history
  • Loading branch information
selankon committed Feb 9, 2024
1 parent bcaa121 commit eb6f1cd
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/publish_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,27 @@ name: Publish artifacts

on:
pull_request:
types:
- labeled
types: [ labeled ]

jobs:
build-artifacts:
if: contains(github.event.pull_request.labels.*.name, 'artifact')
runs-on: ubuntu-latest
build-artifacts:
if: ${{ github.event.label.name == 'artifact' }}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
steps:
- uses: actions/checkout@v3

- name: Install node
uses: actions/setup-node@v3
with:
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 16

- uses: preactjs/compressed-size-action@v2
with:
build-script: "build:production"
- uses: preactjs/compressed-size-action@v2
with:
build-script: "build:production"

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: build/

0 comments on commit eb6f1cd

Please sign in to comment.