Skip to content

Remove underscores preventing github secrets from working. #7

Remove underscores preventing github secrets from working.

Remove underscores preventing github secrets from working. #7

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Replace API Key
env:
API_KEY: ${{ secrets.LASTFM_API_KEY }}
run: |
sed -i 's/LAST_FM_API_KEY/'"$LASTFM_API_KEY"'/g' index.html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .