Skip to content

chore(release): 1.2 ea, 2 beta,ea #236

chore(release): 1.2 ea, 2 beta,ea

chore(release): 1.2 ea, 2 beta,ea #236

name: website:deploy
on:
push:
branches:
- main
paths:
- trdl_channels.yaml
repository_dispatch:
types: ["website:deploy"]
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
deploy-prod:
runs-on: ubuntu-22.04
timeout-minutes: 10
steps:
- name: Deploy v1 documentation
run: |
curl -X POST -F "token=${{ secrets.GITLAB_TRIGGER_TOKEN }}" -F "ref=master" \
${{ secrets.GITLAB_URL }}/api/v4/projects/${{ secrets.GITLAB_PROJECT_ID }}/trigger/pipeline
- name: Update the website
uses: actions/[email protected]
with:
github-token: ${{ secrets.WERF_TEST_GITHUB_TOKEN }}
script: |
return await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: '${{vars.WEBSITE_REPO_NAME}}',
workflow_id: '${{vars.WEBSITE_DEPLOY_WORKFLOW_ID}}',
ref: 'refs/heads/main',
inputs: {},
});
notify:
if: always()
needs: deploy-prod
uses: ./.github/workflows/_notification.yml
secrets:
mentionGroupID: ${{ secrets.SLACK_MENTION_GROUP_ID }}
webhook: ${{ secrets.SLACK_WEBHOOK }}