Skip to content

Commit

Permalink
chore: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyg603 committed Mar 20, 2024
1 parent ad65365 commit 83fb909
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Build and Upload Artifacts for Multiple OS
name: Package Builds

on:
push:
tags:
- 'v*'

on: [push]

jobs:
build:
Expand All @@ -20,20 +24,22 @@ jobs:
artifact_name: symbol-upload-win

steps:
- uses: actions/checkout@v4
- name: ☑️ Checkout
uses: actions/checkout@v4

- name: Setup Node.js
- name: ⚙️ Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Install dependencies
- name: 🏗️ Install Dependencies
run: npm ci

- name: Run platform-specific script
- name: 📦 Run Pkg
run: npm run ${{ matrix.run_script }} # Executes the script based on the operating system

- uses: actions/upload-artifact@v4
- name: ⬆️ Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: pkg/* # Uploads the artifact with a platform-specific name and path
6 changes: 3 additions & 3 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test My GitHub Action
name: Test GitHub Action

on:
pull_request:
Expand All @@ -8,10 +8,10 @@ jobs:
test-my-action:
runs-on: ubuntu-latest
steps:
- name: Check out code
- name: ☑️ Checkout
uses: actions/checkout@v3

- name: Symbols 📦
- name: 📦 Symbols
uses: ./
with:
clientId: "${{ secrets.SYMBOL_UPLOAD_CLIENT_ID }}"
Expand Down

0 comments on commit 83fb909

Please sign in to comment.