Skip to content

組織垢などでも使えるGitHubActionsを用いてVercelにデプロイするもの。

License

Notifications You must be signed in to change notification settings

yuito-it/GitHub-Vercel-Actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub-Vercel-Actions

GitHub OrganizationなどでVercelが使えないときに使って下さい。

使い方

変数にこれらの値をいれてください。 withで構いません。

  • vercel-token - Vercel API token
  • vercel-project - Vercel Project Name

また、これを用いて、DeploymentURLを設定することもできます。

Exsample

name: Vercel Production Deployment
on:
  push:
    branches:
      - main
jobs:
  deployment:
    runs-on: ubuntu-latest
    concurrency: Production
    environment:
        name: Production
        url: ${{ steps.get_release_url.outputs.release_url }}
    steps:
    - uses: yuito-it/[email protected]
      with:
        vercel-token: ${{ secrets.VERCEL_TOKEN }}
        vercel-project: ${{ vars.VERCEL_PROJECT }}
    - name: Set release url
      shell: bash
      id: get_release_url
      run: echo release_url=$(cat deployment-url.txt) >> $GITHUB_OUTPUT

About

組織垢などでも使えるGitHubActionsを用いてVercelにデプロイするもの。

Resources

License

Stars

Watchers

Forks

Packages

No packages published