|
1 | 1 | name: Publish |
2 | 2 |
|
3 | 3 | on: |
4 | | - # release: |
5 | | - # workflow_dispatch: |
6 | | - # workflow_call: |
7 | 4 | push: |
8 | | - # branches: |
9 | | - # - main |
10 | 5 | tags: |
11 | 6 | - 'v*' |
12 | 7 |
|
|
41 | 36 | prerelease: true |
42 | 37 | env: |
43 | 38 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
44 | | - # upload-compiled-binary: |
45 | | - # # The type of runner that the job will run on |
46 | | - # runs-on: ubuntu-latest |
47 | | - |
48 | | - # # Steps represent a sequence of tasks that will be executed as part of the job |
49 | | - # steps: |
50 | | - # # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
51 | | - # - uses: actions/checkout@v3 |
52 | | - |
53 | | - # - name: setup rustup |
54 | | - # run: | |
55 | | - # rustup override set 1.60 |
56 | | - # rustup target add x86_64-pc-windows-gnu |
57 | | - |
58 | | - # - uses: Swatinem/rust-cache@v1 |
59 | | - |
60 | | - # - name: install deps |
61 | | - # run: sudo apt install -y mingw-w64 |
62 | | - |
63 | | - # - name: compile linux |
64 | | - # run: cargo build --release -p xmodits |
65 | | - |
66 | | - # - name: compile windows |
67 | | - # run: cargo build --target=x86_64-pc-windows-gnu --release -p xmodits --bin xmodits --bin xmodits-cli |
68 | | - |
69 | | - # - name: version |
70 | | - # run: echo "::set-output name=version::$(./target/release/xmodits -v)" |
71 | | - # id: version |
72 | | - |
73 | | - # - name: copy_extra_files |
74 | | - # run: | |
75 | | - # cp ./LICENSE ./target/release/ |
76 | | - # cp ./README.md ./target/release/ |
77 | | - |
78 | | - # cp ./LICENSE ./target/x86_64-pc-windows-gnu/release/ |
79 | | - # cp ./README.md ./target/x86_64-pc-windows-gnu/release/ |
80 | | - |
81 | | - |
82 | | - # - name: zip up linux |
83 | | - # run: zip -j xmodits-linux ./target/release/{xmodits,LICENSE,README.md} |
84 | | - |
85 | | - # - name: zip up windows |
86 | | - # run: zip -j xmodits-windows ./target/x86_64-pc-windows-gnu/release/{xmodits.exe,LICENSE,README.md} |
87 | | - |
88 | | - # - uses: ncipollo/release-action@v1 |
89 | | - # with: |
90 | | - # allowUpdates: true |
91 | | - # artifacts: "xmodits-linux.zip,xmodits-windows.zip" |
92 | | - # token: ${{ github.token }} |
93 | | - # tag: ${{ steps.version.outputs.version }} |
0 commit comments