Skip to content

Commit

Permalink
Deploy docs action fix branch name extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
l7ssha committed Oct 25, 2024
1 parent 9d8ec9c commit 308b2b7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@ jobs:
- name: Generate docs
run: dart doc

- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- name: Deploy nyxx dev docs
uses: easingthemes/[email protected]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
ARGS: "-rltDzvO"
SOURCE: "doc/api/"
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx/${{ steps.extract_branch.outputs.branch }}/"
TARGET: "${{ secrets.DEPLOY_REMOTE_TARGET }}/dartdocs/nyxx/${{ env.BRANCH_NAME }}/"
with:
REMOTE_HOST: ${{ secrets.DEPLOY_REMOTE_HOST }}
REMOTE_USER: ${{ secrets.DEPLOY_REMOTE_USER }}
Expand Down

0 comments on commit 308b2b7

Please sign in to comment.