Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
BirdeeHub committed Jul 7, 2024
1 parent de1cd11 commit 31c8eee
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 21,27 @@ jobs:

- name: Build docker packages
run: |
mkdir -p docker/x86_64-linux/
nix build .#docker.x86_64-linux.default
cp result docker-x86_64-linux
cp result docker/x86_64-linux/64-linux-FOOdBAR_IMAGE
- name: Build other packages
run: |
mkdir -p packages/x86_64-linux/
nix build .#packages.x86_64-linux.default
cp result/bin/FOOdBAR package-x86_64-linux
cp result/bin/FOOdBAR packages/x86_64-linux/64-linux-FOOdBAR
- name: Upload docker x86_64-linux artifact
uses: actions/upload-artifact@v2
with:
name: docker-x86_64-linux
path: ./docker-x86_64-linux
path: ./docker

- name: Upload package x86_64-linux artifact
uses: actions/upload-artifact@v2
with:
name: package-x86_64-linux
path: ./package-x86_64-linux

- name: List contents of cwd
run: |
pwd
ls -la ./
ls -l ./docker-x86_64-linux
ls -l ./package-x86_64-linux
name: packages
path: ./packages

release:
needs: build
Expand All @@ -59,21 54,23 @@ jobs:
- name: Download docker x86_64-linux artifact
uses: actions/download-artifact@v2
with:
name: docker-x86_64-linux
path: ./docker-x86_64-linux
name: docker
path: ./docker

- name: Download package x86_64-linux artifact
uses: actions/download-artifact@v2
with:
name: package-x86_64-linux
path: ./package-x86_64-linux
name: packages
path: ./packages

- name: List contents of cwd
run: |
pwd
ls -la ./
ls -l ./docker-x86_64-linux/*
ls -l ./package-x86_64-linux/*
ls -la ./docker
ls -la ./packages
ls -la ./docker/x86_64-linux
ls -la ./packages/x86_64-linux
- name: Create Release
id: create_release
Expand All @@ -92,8 89,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASEPAT }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./docker-x86_64-linux/docker-x86_64-linux
asset_name: docker-x86_64-linux
asset_path: ./docker/x86_64-linux/64-linux-FOOdBAR_IMAGE
asset_name: 64-linux-FOOdBAR_IMAGE
asset_content_type: application/octet-stream

- name: Upload package x86_64-linux to release
Expand All @@ -102,6 99,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.RELEASEPAT }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./package-x86_64-linux/package-x86_64-linux
asset_name: package-x86_64-linux
asset_path: ./packages/x86_64-linux/64-linux-FOOdBAR
asset_name: 64-linux-FOOdBAR
asset_content_type: application/octet-stream

0 comments on commit 31c8eee

Please sign in to comment.