1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-11-22 13:03:38 +00:00

remove data files from GH builds

This commit is contained in:
Alula 2021-08-13 03:57:46 +02:00
parent f44e3c298a
commit 5637bb6052

View file

@ -37,12 +37,6 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Checkout data files
uses: actions/checkout@v2
with:
repository: doukutsu-rs/game-data
path: data
- name: Install latest stable Rust toolchain - name: Install latest stable Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -60,21 +54,14 @@ jobs:
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: doukutsu-rs_linux_x86_64 name: doukutsu-rs_linux_x86_64
path: | path: doukutsu-rs.x86_64
doukutsu-rs.x86_64
data
!data/README.md
if-no-files-found: error if-no-files-found: error
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: | files: doukutsu-rs.x86_64
doukutsu-rs.x86_64
data
!data/.git
!data/README.md
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -109,12 +96,6 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Checkout data files
uses: actions/checkout@v2
with:
repository: doukutsu-rs/game-data
path: data
- name: Install latest stable Rust toolchain - name: Install latest stable Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -127,27 +108,20 @@ jobs:
run: cargo build --target i686-pc-windows-msvc --all --release run: cargo build --target i686-pc-windows-msvc --all --release
- name: Copy executable to root directory - name: Copy executable to root directory
run: cp target/i686-pc-windows-msvc/release/doukutsu-rs.exe doukutsu-rs.exe run: cp target/i686-pc-windows-msvc/release/doukutsu-rs.exe doukutsu-rs.x86.exe
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: doukutsu-rs_windows_x86 name: doukutsu-rs_windows_x86
path: | path: doukutsu-rs.x86.exe
doukutsu-rs.exe
data
!data/.git
!data/README.md
if-no-files-found: error if-no-files-found: error
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: | files: doukutsu-rs.x86.exe
doukutsu-rs.exe
data
!data/README.md
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -182,12 +156,6 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Checkout data files
uses: actions/checkout@v2
with:
repository: doukutsu-rs/game-data
path: data
- name: Install latest stable Rust toolchain - name: Install latest stable Rust toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -199,26 +167,19 @@ jobs:
run: cargo build --all --release run: cargo build --all --release
- name: Copy executable to root directory - name: Copy executable to root directory
run: cp target/release/doukutsu-rs.exe doukutsu-rs.exe run: cp target/release/doukutsu-rs.exe doukutsu-rs.x86_64.exe
- name: Upload artifacts - name: Upload artifacts
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: doukutsu-rs_windows_x64 name: doukutsu-rs_windows_x64
path: | path: doukutsu-rs.x86_64.exe
doukutsu-rs.exe
data
!data/.git
!data/README.md
if-no-files-found: error if-no-files-found: error
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
files: | files: doukutsu-rs.x86_64.exe
doukutsu-rs.exe
data
!data/README.md
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}