Skip to content

Commit

Permalink
Publish release for git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
probablycorey authored and mislav committed Nov 8, 2019
1 parent 528ea6e commit 7f70a34
Show file tree
Hide file tree
Showing 9 changed files with 11,911 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/actions/copy-release-to-another-repo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copy relase to another repo

**REMEMBER**
**If you want your changes to be run, make sure you transpile your typescript with the `npm run build` command**

This copies a relase from the repo the action is installed on to another repo.

Add these inputs to your workflow yml file.

```
UPLOAD_OWNER_NAME: some-org-or-user
UPLOAD_REPO_NAME: the-repo-name
```

Add this secret to your repo's secrets. It's a GitHub access token that has
access to the repo described by the UPLOAD_OWNER_NAME/UPLOAD_REPO_NAME inputs.

```
UPLOAD_GITHUB_TOKEN: ${{secrets.UPLOAD_GITHUB_TOKEN}}
```
9 changes: 9 additions & 0 deletions .github/actions/copy-release-to-another-repo/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 'Copy release to another repo'
description: 'Copy a release from one repo to another'
author: 'probablycorey'
runs:
using: 'node12'
main: './lib/index.js'
outputs:
asset-url:
description: The url of the asset that was copied
Loading

0 comments on commit 7f70a34

Please sign in to comment.