Skip to content
GitHub action to assign an alias to a now deployment
TypeScript Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
.gitignore
Dockerfile
README.md
action.yml
index.ts
package.json
pre-commit.sample
tsconfig.json
yarn.lock

README.md

GitHub action to assign an alias to a now deployment

Usage

name: deploy
on:
  push:

jobs:
  now:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: now
        id: now
        uses: shareup/now-action@master
        with:
          token: ${{ secrets.zeit_token }}
          prod: ${{ github.ref == 'refs/heads/master' }}
      - name: alias
        uses: shareup/now-alias-assign-action@master
        with:
          token: ${{ secrets.zeit_token }}
          deployment: ${{ steps.now.outputs.deployment_url }}
          alias: https://something.example.now.sh

Development

You'll need:

  • node
  • yarn
  • hadolint

On the mac:

$ brew install node yarn hadolint
You can’t perform that action at this time.