Skip to content

Commit

Permalink
Test GH Actions env context
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 authored Jan 10, 2025
1 parent f837afb commit c72f5db
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
name: Publish main
name: Test

on:
push:
branches: [main]

jobs:
publish:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: '[node LTS] npm install'
uses: ljharb/actions/node/install@main
with:
node-version: lts/*
- run: npm run build
- name: Publish to gh-pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build
clean-exclude: |
pr
- run: echo "CUSTOM_FOO=foo" >> "$GITHUB_ENV"
- env:
CUSTOM_BAR: ${{ env.CUSTOM_FOO }}
CUSTOM_BAZ: "::${{ env.CUSTOM_FOO }}::"
run: "env | grep CUSTOM_"

0 comments on commit c72f5db

Please sign in to comment.