push 1.1.0 to web #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Description: Publish script to another repo hosting a GitHub Pages website | |
# | |
# required values: | |
# var.SCRIPT_NAME : name of the script to publish | |
# secrets.API_TOKEN_GITHUB : github token with write access to the repo | |
name: publish-to-web | |
run-name: push ${{ github.event.release.tag_name }} to web | |
on: | |
release: | |
types: [released] | |
workflow_dispatch: | |
jobs: | |
upload-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Push scripts | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
with: | |
source_file: ${{ vars.SCRIPT_NAME }} | |
destination_repo: 'robertpeteuil/iac.sh' | |
destination_branch: 'master' | |
destination_folder: 'docs' | |
user_email: 'actions@github.com' | |
user_name: 'release-action' | |
commit_message: 'update to ${{ github.event.release.tag_name }} from ${{ github.repository }}' | |