feature: devcontainerの構成を追加 & .gitignoreをPythonとJetBrains用に修正 #52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build for Windows | |
| on: | |
| push: | |
| branches: | |
| - 'dev' | |
| jobs: | |
| build-windows: | |
| runs-on: windows-2019 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Build Docker image | |
| run: docker build -f ./windows/Dockerfile -t pyinstaller-windows . | |
| - name: Create dist directory | |
| run: mkdir windows\dist | |
| - name: Run Docker container | |
| run: docker run --rm -v "${{ github.workspace }}\windows\dist:C:\dist" pyinstaller-windows powershell -Command "pyinstaller main.py --onedir --onefile --clean --console --distpath C:\dist --workpath C:\build --specpath C:\" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: minecraft-mods-localizer-windows | |
| path: windows/dist/main.exe |