Skip to content

Merge pull request #356 from yktakaha4/create-pull-request/patch #44

Merge pull request #356 from yktakaha4/create-pull-request/patch

Merge pull request #356 from yktakaha4/create-pull-request/patch #44

Workflow file for this run

name: Merge
on:
push:
branches:
- source
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
TZ: Asia/Tokyo
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: '18'
- id: yarn-cache-dir-path
run: echo "YARN_CACHE_DIR=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install
- run: yarn build
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: master
- uses: actions/upload-artifact@v4
with:
name: build
path: ./build/
upload_pdf:
name: Upload PDF
runs-on: ubuntu-22.04
timeout-minutes: 5
needs: deploy
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
- run: ./generate_pdf.bash
- run: tar -zcvf build.tgz ./build
- run: echo "release_tag=v$(date '+%Y%m%d_%H%M%S')" >> $GITHUB_ENV
- uses: actions/create-release@v1
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.release_tag }}
release_name: Release ${{ env.release_tag }}
draft: false
prerelease: false
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: pdf/out/resume.pdf
asset_name: resume.pdf
asset_content_type: application/pdf
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build.tgz
asset_name: build.tgz
asset_content_type: application/x-gzip