update set-output to environment files

This commit is contained in:
2023-05-05 23:53:01 +08:00
parent a78672beef
commit effa4fd113

View File

@@ -17,8 +17,7 @@ jobs:
- name: "Install Dependencies" - name: "Install Dependencies"
run: yarn run: yarn
- name: "Get current date" - name: "Get current date"
id: "date" run: echo "date=$(date --rfc-3339=date)" >> "$GITHUB_ENV"
run: echo "::set-output name=date::$(date --rfc-3339=date)"
- name: "Build" - name: "Build"
run: yarn build run: yarn build
env: env:
@@ -26,7 +25,7 @@ jobs:
REACT_APP_ROOM_ID: 1 REACT_APP_ROOM_ID: 1
REACT_APP_BACKEND: "https://api.sbsybqlaaaaaaa.buzz/" REACT_APP_BACKEND: "https://api.sbsybqlaaaaaaa.buzz/"
REACT_APP_STORAGE: "https://file.sbsybqlaaaaaaa.buzz/" REACT_APP_STORAGE: "https://file.sbsybqlaaaaaaa.buzz/"
REACT_APP_BUILD_INFO: "v-${{steps.date.outputs.date}}" REACT_APP_BUILD_INFO: "v-${{ env.date }}"
- name: "Deploy with gh-pages" - name: "Deploy with gh-pages"
run: | run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git