Skip to content

Commit

Permalink
use variable directly
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jul 1, 2023
1 parent 932fa40 commit 64edb05
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@ on:
- master
workflow_dispatch:

env:
APP_NAME: ${{ vars.APP_NAME }}

jobs:
build:
runs-on: ubuntu-latest
environment:
name: Production
url: https://brdgm.me/$APP_NAME
url: "https://brdgm.me/${{ vars.APP_NAME }}"

steps:
- name: Use variables
run: echo "APP_NAME -> $APP_NAME"
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
Expand All @@ -42,5 +37,5 @@ jobs:
user-email: ${{ secrets.GH_SITE_DEPLOY_EMAIL }}
user-name: ${{ secrets.GH_SITE_DEPLOY_NAME }}
target-branch: main
commit-message: deploy $APP_NAME
target-directory: $APP_NAME
commit-message: deploy ${{ vars.APP_NAME }}
target-directory: ${{ vars.APP_NAME }}

0 comments on commit 64edb05

Please sign in to comment.