Skip to content

Commit

Permalink
Merge pull request #398 from selankon/f/upload-artifacts
Browse files Browse the repository at this point in the history
Add gh action to upload artifacts
  • Loading branch information
G10h4ck authored Feb 12, 2024
2 parents cab8e8d + cc4773f commit b292539
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI-Development
name: Test build

on: [pull_request]

Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/publish_artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish artifacts

on:
pull_request:
types: [ labeled, synchronize ]

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

steps:
- uses: actions/checkout@v3

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

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

# Used to send a comment to the PR with the artifact url
- name: Save PR number
run: |
mkdir -p build/pr_number/
touch build/pr_number/${{ github.event.number }}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: limeAppBuild
path: build/
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI
name: Run tests

on:
push:
Expand Down

0 comments on commit b292539

Please sign in to comment.