-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.13 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Test this Action
steps:
- uses: actions/checkout@v2
- name: Self-test
run: |
composer install
composer test
- name: Package a dummy extension
uses: ./
id: package
with:
extension-dir: /github/workspace/yeswiki-extension-test
extension-name: yeswiki-extension-test
- name: Get the test extension md5sum
run: echo "md5sum is ${{ steps.package.outputs.md5sum }}"
- name: Get the test extension archive-name
run: echo "archive-name is ${{ steps.package.outputs.archive-name }}"
docker-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Packages Container registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Releases it to use outside of GitHub Actions
# eg: GitLab CI/CD
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: "ghcr.io/${{ github.repository }}:latest"