Copy a release to another repository.
Forked from Release-AIO under the MIT license to provide more control over copying a specific release.
The original Release-AIO
action referenced @actions/create-release
@actions/upload-release-asset
.
Copy-Release builds dist as in this spacejelly tutorial.
GITHUB_TOKEN
: Setsecrets.GITHUB_TOKEN
toenv.GITHUB_TOKEN
, Pay attention set a new secret token when create a release to other repository
tag_name
: The name of the tag for the release to copy
id
: The release IDhtml_url
: The URL users can navigate to in order to view the releaseupload_url
: The URL for uploading assets to the release
- Copy a specific Release of the current Repository to the target Repository
- private_Repo => public_Repo
- Use in private_Repo
- A new token to access the target Repository
- name: Copy Release to some-repo
id: Copy-Release
uses: DanMass/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }} # You need a new token to access the target Repository
with:
tag_name: 'v1.3.2'
repo: 'AnOrg/public-repo'
- Copy the latest Release of the current Repository to the target Repository
- private_Repo => public_Repo
- Use in private_Repo
- A new token to access the target Repository
- name: Copy Release to some-repo
id: Copy-Release
uses: DanMass/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PRIVATE_TOKEN }} # You need a new token to access the target Repository
with:
repo: 'AnOrg/public-repo'