Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

im fucking stupiddd 😢 #18

im fucking stupiddd 😢

im fucking stupiddd 😢 #18

Workflow file for this run

name: Build and Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up MSVC
uses: microsoft/[email protected]
- name: Build .lib file
run: |
msbuild /p:Configuration=Release /t:RegistryHelper /p:Platform=x64 RegistryHelper.sln
- name: Upload to Release
uses: actions/upload-artifact@v2
with:
name: lib-artifact
path: |
x64/Release/RegistryHelper.lib
x64/Release/RegistryHelper.pdb
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Git
run: git fetch --tags
- name: Get the latest tag
id: get_tag
run: |
latest_tag=$(git tag -l --sort=-v:refname | head -n 1)
if [ -z "$latest_tag" ]; then
latest_tag="v0.1.0" # Fallback tag if no tags exist
fi
echo "Latest tag: $latest_tag"
echo "TAG=$latest_tag" >> $GITHUB_ENV
- name: Display release version
run: |
echo "Release version: ${{ env.TAG }}"
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: lib-artifact
path: x64/Release
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG }}
name: "Release ${{ env.TAG }}"
# body: |
# Custom body content for the release.
# Include any notable changes or information here.
# You can use multiple lines and markdown syntax.
files: x64/Release/*
token: ${{ secrets.GITHUB_TOKEN }}