mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-12 05:57:45 +00:00
Add authentication for gh
command
This commit is contained in:
parent
adfd4af872
commit
94ceb3cffd
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,9 @@ on:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload-robots-txt-file-to-release:
|
upload-robots-txt-file-to-release:
|
||||||
name: "Upload robots.txt file to release"
|
name: "Upload robots.txt file to release"
|
||||||
|
@ -19,5 +22,6 @@ jobs:
|
||||||
- name: "Upload"
|
- name: "Upload"
|
||||||
run: gh --repo "${REPO}" release upload "${TAG}" robots.txt
|
run: gh --repo "${REPO}" release upload "${TAG}" robots.txt
|
||||||
env:
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
REPO: ${{ github.repository }}
|
REPO: ${{ github.repository }}
|
||||||
TAG: ${{ github.event.release.tag_name }}
|
TAG: ${{ github.event.release.tag_name }}
|
||||||
|
|
Loading…
Reference in a new issue