Skip to content

Build Extension

Build Extension #12

Workflow file for this run

name: Build Extension
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
setup:
name: "Setup"
runs-on: ubuntu-latest
outputs:
ext-ref: ${{ steps.extract-ref.outputs.ref }}
steps:
- name: Extract Ref
id: extract-ref
env:
GH_TOKEN: ${{ github.token }}
run: |
ref=main
if [ ! -z "${{ github.event.pull_request.number }}" ]; then
ref="refs/pull/${{ github.event.pull_request.number }}/merge"
fi
echo "ref=${ref}" >> $GITHUB_OUTPUT
- name: Print Ref
run: |
echo "${{ steps.extract-ref.outputs.ref }}"
build:
needs: [ setup ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
with:
ref: ${{ needs.setup.outpus.ext-ref }}
- name: Build Extension
id: build_extension
uses: Macro-Deck-App/Actions/build-extension@main
with:
extension-path: .
artifact-name: ${{ github.event.pull_request.number }}