Browse Source

Merge pull request #277 from Speedy37/patch-1

Build on any push, release on master
pull/400/head 22000.282.32.6_050f10a
Valentin-Gabriel Radu 4 years ago committed by GitHub
parent
commit
050f10aa58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 22
      .github/workflows/build.yml

22
.github/workflows/build.yml

@ -6,10 +6,7 @@
name: Build name: Build
on: on: [push, pull_request]
push:
branches:
- master
env: env:
SOLUTION_FILE_PATH: . SOLUTION_FILE_PATH: .
@ -74,10 +71,18 @@ jobs:
working-directory: build/Release working-directory: build/Release
run: | run: |
Copy-Item ExplorerPatcher.amd64.dll dxgi.dll Copy-Item ExplorerPatcher.amd64.dll dxgi.dll
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: bin
path: |
build/Release/
- name: Generate release name - name: Generate release name
shell: bash shell: bash
working-directory: build/Release working-directory: build/Release
if: github.ref == 'refs/heads/master'
run: | run: |
echo "::set-output name=data::$(./ep_generate_release_name.exe)" echo "::set-output name=data::$(./ep_generate_release_name.exe)"
id: release_name id: release_name
@ -85,6 +90,7 @@ jobs:
- name: Generate release notes - name: Generate release notes
shell: bash shell: bash
working-directory: build/Release working-directory: build/Release
if: github.ref == 'refs/heads/master'
run: | run: |
MY_STRING=$(./ep_generate_release_description.exe ${{ steps.vars.outputs.sha_short }} ${{ steps.vars.outputs.branch }}) MY_STRING=$(./ep_generate_release_description.exe ${{ steps.vars.outputs.sha_short }} ${{ steps.vars.outputs.branch }})
MY_STRING="${MY_STRING//'%'/'%25'}" MY_STRING="${MY_STRING//'%'/'%25'}"
@ -95,6 +101,7 @@ jobs:
- name: Create/update release - name: Create/update release
uses: actions/create-release@v1 uses: actions/create-release@v1
if: github.ref == 'refs/heads/master'
id: create_release id: create_release
with: with:
draft: false draft: false
@ -107,6 +114,7 @@ jobs:
- name: Upload dxgi.dll - name: Upload dxgi.dll
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
if: github.ref == 'refs/heads/master'
env: env:
GITHUB_TOKEN: ${{ secrets.PAT }} GITHUB_TOKEN: ${{ secrets.PAT }}
with: with:
@ -117,6 +125,7 @@ jobs:
- name: Upload ExplorerPatcher.amd64.dll - name: Upload ExplorerPatcher.amd64.dll
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
if: github.ref == 'refs/heads/master'
env: env:
GITHUB_TOKEN: ${{ secrets.PAT }} GITHUB_TOKEN: ${{ secrets.PAT }}
with: with:
@ -127,10 +136,11 @@ jobs:
- name: Upload ExplorerPatcher.IA-32.dll - name: Upload ExplorerPatcher.IA-32.dll
uses: actions/upload-release-asset@v1 uses: actions/upload-release-asset@v1
if: github.ref == 'refs/heads/master'
env: env:
GITHUB_TOKEN: ${{ secrets.PAT }} GITHUB_TOKEN: ${{ secrets.PAT }}
with: with:
upload_url: ${{ steps.create_release.outputs.upload_url }} upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/Release/ExplorerPatcher.IA-32.dll asset_path: ./build/Release/ExplorerPatcher.IA-32.dll
asset_name: ExplorerPatcher.IA-32.dll asset_name: ExplorerPatcher.IA-32.dll
asset_content_type: application/x-msdownload asset_content_type: application/x-msdownload

Loading…
Cancel
Save