Skip to content

Commit

Permalink
Merge pull request #72 from GSA-TTS/jimmoffet-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmoffet authored Sep 16, 2024
2 parents ab9e77f + d2c8435 commit e0c77d9
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main

permissions:
contents: read
contents: write

jobs:
deploy:
Expand All @@ -19,24 +19,24 @@ jobs:
with:
fetch-depth: 2
- uses: ./.github/actions/setup-project
# - name: Set up Node.js
# uses: actions/setup-node@v3
# with:
# node-version: '20.15.1'
# - name: Install dependencies
# run: npm ci
# - name: Build Svelte App
# run: npm run build
# - name: Commit build artifacts
# # env:
# # GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} # Use PAT_TOKEN secret for authentication
# run: |
# git config --global user.name 'github-actions[bot]'
# git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}
# git add -f build/ # Force add the build directory
# git commit -m 'Add build artifacts for deployment' || echo "No changes to commit"
# git push
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.15.1'
- name: Install dependencies
run: npm ci
- name: Build Svelte App
run: npm run build
- name: Commit build artifacts
# env:
# GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} # Use PAT_TOKEN secret for authentication
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}
git add -f build/ # Force add the build directory
git commit -m 'Add build artifacts for deployment' || echo "No changes to commit"
git push
- name: Deploy to cloud.gov
uses: 18f/cg-deploy-action@main
env:
Expand Down

0 comments on commit e0c77d9

Please sign in to comment.