don't shift game array #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
paths: | |
- 'src/**' | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
persist-credentials: false | |
- name: Setup Node.js environment | |
uses: actions/setup-node@main | |
with: | |
node-version: 16 | |
cache: 'npm' | |
- name: Install Node modules | |
run: npm ci | |
- name: Install ncc | |
run: npm i -g @vercel/ncc | |
- name: Build dist | |
run: ncc build src/index.js | |
- name: Commit file | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Build index.js" | |
- name: Push change | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
force: true | |
steam-to-readme-job: | |
needs: build | |
runs-on: windows-2019 | |
name: Write steam svg | |
steps: | |
- name: Checkout | |
uses: actions/checkout@main | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Get info from steam and write new readme | |
id: spotify | |
uses: beam41/steam-top-svg@main | |
with: | |
rawBasePath: https://raw.githubusercontent.com/beam41/steam-top-svg/main/ | |
apiKey: ${{ secrets.STEAM_KEY }} | |
steamId: '76561198062644260' | |
- name: Commit file | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Update Spotify data to readme" | |
- name: Push change | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
force: true |