Skip to content

Commit

Permalink
ci: auto recognize project name
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Nov 24, 2023
1 parent 718b683 commit 9fef3ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: levilamina-example-plugin-windows-x64-${{ github.sha }}
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
path: |
bin/
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: levilamina-example-plugin-windows-x64-${{ github.sha }}
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
path: |
bin/
Expand All @@ -37,7 +37,7 @@ jobs:

- uses: actions/download-artifact@v3
with:
name: levilamina-example-plugin-windows-x64-${{ github.sha }}
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }}
path: release/

- run: |
Expand All @@ -46,11 +46,11 @@ jobs:
- name: Archive release
run: |
cd release
zip -r ../levilamina-example-plugin-windows-x64.zip *
zip -r ../${{ github.event.repository.name }}-windows-x64.zip *
cd ..
- uses: softprops/action-gh-release@v1
with:
append_body: true
files: |
levilamina-example-plugin-windows-x64.zip
${{ github.event.repository.name }}-windows-x64.zip
5 changes: 1 addition & 4 deletions include/Plugin.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef LEVILAMINA_EXAMPLE_PLUGIN_PLUGIN_H_
#define LEVILAMINA_EXAMPLE_PLUGIN_PLUGIN_H_
#pragma once

#include <string_view>

Expand Down Expand Up @@ -51,5 +50,3 @@ class Plugin {

ll::plugin::Plugin& getSelf() const;
};

#endif // LEVILAMINA_EXAMPLE_PLUGIN_PLUGIN_H_

0 comments on commit 9fef3ba

Please sign in to comment.