Skip to content

Commit c72f5db

Browse files
authored
Test GH Actions env context
1 parent f837afb commit c72f5db

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.github/workflows/publish-main.yml

+7-16
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
1-
name: Publish main
1+
name: Test
22

33
on:
44
push:
5-
branches: [main]
65

76
jobs:
8-
publish:
7+
test:
98
runs-on: ubuntu-latest
109
steps:
11-
- uses: actions/checkout@v4
12-
- name: '[node LTS] npm install'
13-
uses: ljharb/actions/node/install@main
14-
with:
15-
node-version: lts/*
16-
- run: npm run build
17-
- name: Publish to gh-pages
18-
uses: JamesIves/[email protected]
19-
with:
20-
branch: gh-pages
21-
folder: build
22-
clean-exclude: |
23-
pr
10+
- run: echo "CUSTOM_FOO=foo" >> "$GITHUB_ENV"
11+
- env:
12+
CUSTOM_BAR: ${{ env.CUSTOM_FOO }}
13+
CUSTOM_BAZ: "::${{ env.CUSTOM_FOO }}::"
14+
run: "env | grep CUSTOM_"

0 commit comments

Comments
 (0)