GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Deployment Action - GitHub Marketplace A GitHub action to create Deployments as part of your GitHub CI workflows. **Important: you must grant your GitHub Actions workflow deployment permissions as shown below. Otherwise, this Action will not work. jobs: deploy: name: Deploy runs-on: ubuntu-latest permissions: deployments: write # ... name: Deploy on: [push] jobs: deploy: name: Deploy my app runs-on: ubuntu-latest permissions: deployments: write steps: - uses: actions/checkout@v4 - uses: chrnorm/deployment-action@v2 name: Create GitHub deployment id: deployment with: token: '${{ github.token }}' environment-url: http://my-app-url.com environment: production # more steps below where you run your deployment scripts inside the same action
Heads up! Currently, there is a GitHub Actions limitation where events fired inside an action will not trigger further workflows. If you use this action in your workflow, it will not trigger any "Deployment" workflows. Thanks to @rclayton-the-terrible for finding a workaround for this:
A workaround for this is to create the Deployment, perform the deployment steps, and then trigger an action to create a Deployment Status using my other action: chrnorm/deployment-status. For example: name: Deploy on: [push] jobs: deploy: name: Deploy my app runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - uses: chrnorm/deployment-action@v2 name: Create GitHub deployment id: deployment with: token: '${{ github.token }}' environment-url: http://my-app-url.com environment: production - name: Deploy my app run: | # add your deployment code here - name: Update deployment status (success) if: success() uses: chrnorm/deployment-status@v2 with: token: '${{ github.token }}' environment-url: ${{ steps.deployment.outputs.environment_url }} deployment-id: ${{ steps.deployment.outputs.deployment_id }} state: 'success' - name: Update deployment status (failure) if: failure() uses: chrnorm/deployment-status@v2 with: token: '${{ github.token }}' environment-url: ${{ steps.deployment.outputs.environment_url }} deployment-id: ${{ steps.deployment.outputs.deployment_id }} state: 'failure'
Deployment Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation. Tags2 (2)Deployment Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation. | ||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |