summaryrefslogtreecommitdiff
path: root/.github/workflows/github-release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/github-release.yml')
-rw-r--r--.github/workflows/github-release.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml
index 0a89026..2c0f72a 100644
--- a/.github/workflows/github-release.yml
+++ b/.github/workflows/github-release.yml
@@ -5,12 +5,21 @@ on:
tags:
- 'xkbcommon-*'
+# Set permissions at the job level.
+permissions: {}
+
jobs:
build:
name: Automatically create GitHub release for tag
runs-on: ubuntu-20.04
+ permissions:
+ contents: write
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ persist-credentials: false
+
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}