From 80bb10af35ef0c29319f0923b5a127fc239bb51d Mon Sep 17 00:00:00 2001 From: lucirezac Date: Tue, 26 Mar 2024 09:13:00 +0100 Subject: [PATCH] GO-165 Create PR test --- .github/workflows/Release.yml | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/Release.yml diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml new file mode 100644 index 0000000..401f7b5 --- /dev/null +++ b/.github/workflows/Release.yml @@ -0,0 +1,46 @@ +name: Release + +on: + release: + types: [published] + push: + branches: GO-165_create-release-workflow + +env: + WORKDIR: release + GITHUB_TOKEN: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} + +jobs: + release: + name: Build and release CDN + runs-on: [ self-hosted, fernando ] + defaults: + run: + working-directory: ${{ env.WORKDIR }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + path: ${{ env.WORKDIR }} + + - name: Create pull request + run: npm run cdn-pr + + # - name: Approve pull request + # uses: juliangruber/approve-pull-request-action@v2 + # with: + # github-token: ${{ secrets.SYSADMIN_GEOCODING_CONTROL_CREDENTIALS }} + # number: ${{ env.PULL_REQUEST }} + # repo: juliangruber/approve-pull-request-action + + # - name: Merge pull request + # uses: juliangruber/merge-pull-request-action@v1 + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + # number: ${{ env.PULL_REQUEST_NUMBER }} + # method: squash # merge rebase + # repo: juliangruber/octokit-action + + # - name: Publish to CDN + # run: npm run pub \ No newline at end of file