Skip to content

Commit 88c3f46

Browse files
authored
Create cd.yml
1 parent b99bab1 commit 88c3f46

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/cd.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Build and tag archive
5+
on:
6+
push:
7+
tags:
8+
- '*'
9+
10+
jobs:
11+
build:
12+
13+
runs-on: windows-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up Python 3.12
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: "3.12"
21+
- name: Create archive
22+
run: Compress-Archive -Path .\Data -DestinationPath DiffDecompile.zip
23+
24+
# Create the release: https://github.com/actions/create-release
25+
- name: Create release
26+
id: create_release
27+
uses: actions/create-release@v1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
30+
with:
31+
tag_name: ${{ github.ref_name }}
32+
release_name: ${{ github.ref_name }}
33+
body: ${{ steps.changelog.outputs.changelog }}
34+
draft: false
35+
prerelease: false
36+
37+
- name: Upload Release Exe
38+
id: upload-release-exe
39+
uses: actions/upload-release-asset@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
upload_url: ${{ steps.create_release.outputs.upload_url }}
44+
asset_path: DiffDecompile.zip
45+
asset_name: DiffDecompile.zip
46+
asset_content_type: application/zip

0 commit comments

Comments
 (0)