Update post image description #1090
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
name: "Deploy Github Pages: thiennguyen.dev" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Run a multi-line script | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GH_PRIVATE_THEME_REPOSITORY: ${{ secrets.GH_PRIVATE_THEME_REPOSITORY }} | |
GH_ALGOLIA_INDEXING_KEY: ${{ secrets.GH_ALGOLIA_INDEXING_KEY }} | |
GH_ALGOLIA_INDEXING_KEY_VI: ${{ secrets.GH_ALGOLIA_INDEXING_KEY_VI }} | |
GH_SHA: ${{ github.sha }} | |
GH_REPO_URL: ${{ github.repositoryUrl }} | |
GH_SERVER_URL: ${{ github.server_url }} | |
GH_REPOSITORY: ${{ github.repository }} | |
GH_EVENT_HEAD_COMMIT_MESSAGE: ${{ github.event.head_commit.message }} | |
run: | | |
echo "artifactname=${GH_TOKEN}" >> $GITHUB_ENV | |
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | |
git config --global user.name "github-actions" | |
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/".insteadOf "[email protected]:" | |
npm install lqip-modern | |
npm run build-gh-page | |
npm run algolia-index | |