Skip to content

Commit

Permalink
ALFREDAPI-522 only allow website-publish on master or release branche…
Browse files Browse the repository at this point in the history
…s by user with dispatch_workflow permissions
  • Loading branch information
RVanhuysseXenit committed Jul 31, 2024
1 parent d0e2a3f commit ad905f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/website-publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: 'Publish website'
on:
push:
workflow_dispatch:
env:
BRANCH_NAME: ${{ github.ref_name }}
ALFRESCO_NEXUS_USERNAME: ${{ secrets.ALFRESCO_NEXUS_USERNAME }}
ALFRESCO_NEXUS_PASSWORD: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }}
jobs:
alfred-api-docs:
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }}
runs-on: ubuntu-latest
steps:
- name: Check out
Expand Down Expand Up @@ -41,8 +41,6 @@ jobs:
mkdir -p /home/runner/.ssh/
echo "$RAW_KEY" > /home/runner/.ssh/a2hostingKey
chmod 600 /home/runner/.ssh/a2hostingKey
- run: |
ls -hal /home/runner/.ssh/a2hostingKey
- name: Deploy tar to webhost
env:
GRADLE_OPTS: >-
Expand Down

0 comments on commit ad905f2

Please sign in to comment.