Skip to content

Update yml write permission #10

Update yml write permission

Update yml write permission #10

Workflow file for this run

name: Create Release
on:
push:
branches:
- develop
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # This line specifies Python 3.x
- name: Install PyInstaller
run: pip install pyinstaller
- name: Build executable
run: pyinstaller --onefile --windowed main.py
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v9
release_name: Release v9
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/main.exe
asset_name: main.exe
asset_content_type: application/octet-stream