Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to publish an artifact? #28

Open
iMonZ opened this issue Mar 5, 2021 · 1 comment
Open

How to publish an artifact? #28

iMonZ opened this issue Mar 5, 2021 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@iMonZ
Copy link

iMonZ commented Mar 5, 2021

Hey,

I have this workflow:

- name: Snapcraft build
      if: matrix.platform == 'ubuntu-latest'
      uses: snapcore/action-build@v1
      id: snapcraft
    - name: Snapcraft artifact upload
      if: matrix.platform == 'ubuntu-latest'
      uses: actions/upload-artifact@v2
      with:
        name: Linux Snapcraft
        path: ${{ steps.snapcraft.outputs.snap }}

How can I convert this workflow into samuelmeuli?
I mean how can I upload an artifact with this fork?

@casperdcl
Copy link
Collaborator

    ...
    steps:
    ...
    - name: Snap install
      uses: samuelmeuli/action-snapcraft@v1
      with:
        use_lxd: true
    - name: Snap build
      run: "sg lxd -c 'snapcraft --use-lxd'"
    - name: Snap upload
      id: snapcraft
      run: |
        snapcraft upload *.snap --release edge
        echo ::set-output name=snap::$(ls *.snap)
    - name: Snapcraft artifact upload
      uses: actions/upload-artifact@v2
      ...
      with:
        ...
        path: ${{ steps.snapcraft.outputs.snap }}

@casperdcl casperdcl added the question Further information is requested label Mar 9, 2021
@casperdcl casperdcl self-assigned this Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants