Skip to content

Commit

Permalink
GH Actions: move dependencies caching into custom action
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Khomiak committed Jun 3, 2024
1 parent 76c004e commit f08f134
Showing 1 changed file with 0 additions and 53 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,56 +22,3 @@ jobs:
run: |
npm run lint
npm run lint-next
- name: Run tests
id: run-tests
run: npm run test

- name: Upload test report
if: failure() && steps.run-tests.outcome == 'failure'
uses: actions/upload-artifact@v4
with:
name: test-report
path: test.json

build:
needs: run-tests
runs-on: ubuntu-latest
steps:
- name: Get code
uses: actions/checkout@v3

- name: Load & cache dependencies
uses: ./.github/actions/cached-deps

- name: Build project
run: npm run build

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: .next

deploy:
needs: build
env:
STRAVA_API_BASE_URL_2: https://www.strava.com
DB_USER_NAME: ${{ secrets.DB_USER_NAME }}
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist

- name: Output contents
run: ls

- name: Output information
run: |
echo "Using API: ${{ env.STRAVA_API_BASE_URL }}"
echo "Using API(option #2): $STRAVA_API_BASE_URL_2"
- name: Deploy
run: echo "Deploying..."

0 comments on commit f08f134

Please sign in to comment.