diff --git a/.github/workflows/workflow-gh-pages-deployment.yml b/.github/workflows/workflow-gh-pages-deployment.yml index 59e6c28..a298cb2 100644 --- a/.github/workflows/workflow-gh-pages-deployment.yml +++ b/.github/workflows/workflow-gh-pages-deployment.yml @@ -25,7 +25,7 @@ permissions: contents: write jobs: - build-and-deploy: + deploy: runs-on: ubuntu-latest env: WORKING_DIR: ${{ inputs.working-dir }} diff --git a/.github/workflows/workflow-vercel-deployment.md b/.github/workflows/workflow-vercel-deployment.md index 21f38d7..d91544c 100644 --- a/.github/workflows/workflow-vercel-deployment.md +++ b/.github/workflows/workflow-vercel-deployment.md @@ -5,11 +5,3 @@ - **Required Secrets:** - `VERCEL_TOKEN`: Token for authentication with Vercel, enables interaction with your Vercel account. - `GITHUB_TOKEN`: Generated by GitHub to enable actions inside the repository, like commenting on pull requests. - - **Workflow Steps:** - - **Checkout Repository**: Gets code from the repository. - - **Install Vercel CLI**: Installs the latest version of the Vercel CLI. - - **Pull Vercel Environment Information**: Fetches environment-specific configurations from Vercel for the preview deployment. - - **Build Project Artifacts**: Builds the project artifacts using the Vercel CLI. - - **Deploy Project Artifacts to Vercel**: Deploys the artifacts to Vercel. - - **Sleep for 10 seconds**: Lets the deployment process complete before commenting the URL. - - **Comment on PR**: Posts a comment on the pull request with the URL. diff --git a/.github/workflows/workflow-vercel-deployment.yml b/.github/workflows/workflow-vercel-deployment.yml index f08edb3..2768c0d 100644 --- a/.github/workflows/workflow-vercel-deployment.yml +++ b/.github/workflows/workflow-vercel-deployment.yml @@ -13,7 +13,7 @@ permissions: pull-requests: write jobs: - Deploy-Preview-and-Comment: + deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -25,9 +25,7 @@ jobs: run: vercel build --token=${{ secrets.VERCEL_TOKEN }} - name: Deploy Project Artifacts to Vercel run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - - - run: sleep 10 - + - name: Comment on PR uses: JoseThen/comment-pr@v1.2.0 with: diff --git a/README.md b/README.md index 18607ab..1088c60 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,7 @@ Each workflow has an associated documentation file that explains its purpose, us Here are the available workflows and their associated documentation: -- [Reusable Docker Container - Build](.github/workflows/workflow-build-container.md) +- [Reusable Docker Container Build](.github/workflows/workflow-build-container.md) - [Reusable Docker Container Deployment to Google Cloud Run](.github/workflows/workflow-deploy-gcp.md) - [Reusable Lint and Test Workflow for Node (React) Projects](.github/workflows/workflow-lint-test-node.md) - [Reusable Lint and Test Workflow for Python Projects](.github/workflows/workflow-lint-test-python.md)